During the merger of several css need convert relative paths to absolute.
One of the steps - get realpath.
There Bootstrap with its css:
@font-face {
font-family: 'Glyphicons Halflings';
src: url('../fonts/glyphicons-halflings-regular.eot');
src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
url('../fonts/glyphicons-halflings-regular.woff') format('woff'),
url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'),
url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}
Result after realpath:
@font-face {
font-family: "Glyphicons Halflings";
src: url("/somepath/fonts/glyphicons-halflings-regular.eot");
src: url("") format("embedded-opentype"),
url("/somepath/fonts/glyphicons-halflings-regular.woff") format("woff"),
url("/somepath/fonts/glyphicons-halflings-regular.ttf") format("truetype"),
url("") format("svg");
}
For paths with params returned false.
How can get the realpath for path with params and save params?