Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS Relative paths wrongly converted #98

Open
rauwebieten opened this issue Sep 21, 2016 · 2 comments
Open

CSS Relative paths wrongly converted #98

rauwebieten opened this issue Sep 21, 2016 · 2 comments

Comments

@rauwebieten
Copy link

For example, I use font-awesome like this:
<link rel="stylesheet" href="/bower_components/font-awesome/css/font-awesome.css">

Original file excerpt:
src: url('../fonts/fontawesome-webfont.eot?v=4.6.3');

Result:
src: url("/\\/bower_components/font-awesome/fonts/fontawesome-webfont.eot?v=4.6.3");

Kind regards

@meenie
Copy link
Owner

meenie commented Sep 21, 2016

I would suggest changing your .htaccess file to not run files from bower_components through Munee.

@rauwebieten
Copy link
Author

rauwebieten commented Sep 22, 2016

I found what is causing my troubles, I am developing locally on a windows machine, and the SUB_FOLDER constant is not set correctly.

In munee/config/bootstrap.php there is on line 7
$subFolder = dirname($_SERVER['SCRIPT_NAME']);
which give me a backslash (windows directory separator) instead of a slash. This makes fixing abs to rel URL's go wrong.

I am able to fix this in my munee.php by defining SUB_FOLDER myself, but I guess this happens on other windows machines too.

Kind regards, and thanks for your wonderful library!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants