Full URL is not working (seems like some escape issue)
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
Minify version: 2.1.4_beta
PHP version: 5
I am using minify in my test server. Whenever I pass full URL to f parameter it
returns bad request error
Example
#1 This is giving an error
<script type="text/javascript"
src="http://192.168.1.254/project_folder/min/?f=http://192.168.1.254/project_fol
der/css/popup.css"></script>
#2 This is working fine
<script type="text/javascript"
src="http://192.168.1.254/project_folder/min/?f=/css/popup.css""></script>
Problem with #2 is whenever css uses any background image, it will not load.
Because it rewrites the location as "http://192.168.1.254/css/images/img.jpg".
Here project_folder is missing in the URL.
I know #1 would work in production server where we dont have any sub folders.
But we need the stuff to work on testing server for testing purpose before we
can upload.
Thanks in Advance,
Retheesh
Can you tell me how to fix it.
Original issue reported on code.google.com by retheesh...@gmail.com
on 17 May 2011 at 12:12
Google Code Exporter commented
#1 Using f=<URL> is not supported.
#2 To use Minify in a site not at the DocumentRoot, use the strategy at:
http://code.google.com/p/minify/wiki/AlternateFileLayouts
Original comment by mrclay....@gmail.com
on 17 May 2011 at 2:49
- Changed state: Invalid