-
Notifications
You must be signed in to change notification settings - Fork 92
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 background path problem '../' #21
Comments
Hi @nikmauro, The reason I have the <link href="/css/style1.css,/css/sub-folder/style2.css" rel="stylesheet"> The relative paths inside of Now, to fix your issue, you may have to define the correct define('WEBROOT', __DIR__); This should make sure Munee has the correct webroot. If that doesn't work, please let me know what the correct path to the |
Hi Again @nikmauro, Just wondering if you had any luck with this? Cheers, |
hello, i have same problem with bootstrap image compress in multiple css files... I have set define('WEBROOT', DIR); in munee.php but nothing... |
Hi @ddtraceweb, Sorry, I was out of the state over the weekend and didn't get much of a chance to connect to the internet. As for fixing your issues with bootstrap, I don't recall any images being distributed with bootstrap. They use Glyphicons (a font) instead. As for putting in Would you please provide the folder structure of your assets and what the Cheers, |
i have this : #munee.php define('WEBROOT', __DIR__);
define('MUNEE_CACHE', dirname(__FILE__).'/../init/cache');
// Include the composer autoload file
require dirname(__FILE__) . '/../vendor/autoload.php';
// Echo out the response
echo \Munee\Dispatcher::run(
new \Munee\Request(array(
))
); but the images un compile css file won't work, same with js compile. |
@ddtraceweb - That all looks right to me, as long as the That should give you a starting point as to why something isn't working. |
@ddtraceweb - Just wondering how it's going with this? |
sorry for time of response, i have this :
compiling is ok, minify too, but he don't find images icons in bootstrap or other images. i think the problem is for resolve : background-image: url("../img/glyphicons-halflings-white.png"); in .css |
Can you please paste the section of the css where Munee rewrites the URL's that link to the fonts and images? I just want to see what path is being written to see if something is going wrong. |
i have found the problem :
this url are not rewrite with the correct link... I think it's param "src" not interpreted. |
I'll have a look at this tomorrow. I believe the rewrite is a bit buggy at the moment. |
Hi @ddtraceweb, I fixed this issue. Sorry it took so long. |
for me the issue is not fixed. rewritebase is /customers/customername edit: apparently it's a bit more complicated. |
Hi @geroyche, Where is your css file located? I'm guessing it's I hope this makes sense. As for the rewritebase, Munee does not take that into account. Cheers, |
it makes sense as a deduction, but it's wrong in my case ;) because the css file is already at and yet, as i said ... default munee behaviour results in "beta.xxx.com/pics/test.jpg" |
@geroyche which version of Munee do you have installed? If you run |
@meenie i installed from the zip file. no composer.phar to run. |
@geroyche I think you may need to delete your cache, if you haven't done so already. Inside If that doesn't work, does Munee think that your webroot is |
webroot is still the same issue, with cache deleted. |
Can you try and add this code right before you include the define('WEBROOT', '/path1/path2/path3/beta'); Just replace Make sure and delete the cache again after the update. |
it's not that... i do think rewrite base is the issue, and i feel like it's easier for me to simple leave css|js out of the rewriterule while in development, and try and use these features once the project goes live. then rewritebase will be /, and I have a feeling the issue will resolve itself. |
@geroyche, okay, it looks like I need to figure out how to get Munee working for sites that are using Rewritebase to change the webroot of a site. As a suggestion to your development practices (not saying what you are doing is wrong) is make a sub-domain for each client you work on instead of putting all their files in a subfolder of the same sub-domain. That way you can make the webroot of each site: http://client1.xxx.com, http://client2.xxx.com. Anyway, hopefully I can get this resolved :). Thank you for all your input so far! I appreciate you sticking with this 👍. |
as for the subdomains: not up to me, but thanks :) |
@geroyche, where is your munee.php (dispatcher) file and .htaccess located, btw? Is that under |
/path1/path2/path3/beta/customers/customername/.htacess |
And the webroot for the site (set in apache or whatever server you are using) is at Also inside the |
it's an apache, yes. RewriteBase /customers/customername is correct. |
Alright, that only leaves out one variable to test with, so I should be good. Thanks again! |
@geroyche - Okay, I put up a new version of Munee (1.15.19). Please download the zip and overwrite what you have. Please also delete everything in the cache folder. You shouldn't need to define WEBROOT anymore and the URLs in the stylesheets should be fixed. crosses fingers |
I've updated Munee again (1.15.20), please re-download if you haven't already. |
@meenie |
Yeeeeeessssss! Finally :-). Sent from my phone.
|
Hello the original css code is background-image: url('../img/logo.png'); and after Munee the css code chenge to background-image: url(/themes/default/img/logo.png); "WRONG PATH AND IMAGES NOT WORKING".
in the same CSS if the background path is 'images/demo.jpg' after Munee the code path remain the same and working.
The fixRelativeImagePaths have some issues.
The text was updated successfully, but these errors were encountered: