-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
Multi-site locale in asset path => file not found #1304
Comments
Asset path where? Are you using a tag? Seeing something in the CP? Please provide some more details. |
The image is shown in the cp. The image is shown correctly in the frontend, if I remove the locale from path (/de). So I think, it's an mod_rewrite problem. For the assets the locale should not be added to the image path. |
Got it, thanks. |
Do you have a workaround for it? Would really help! |
I think it's because the default site is a subdirectory (/de) and asset URLs are being generated relative to that. A workaround (not a great one) is to make your default site |
What are you expecting to be at the root though if both sites live in subdirectories? |
Sorry, i think my issue was unclear, I try to explain it better. |
I understand that, but put aside the image stuff for a second. What are you expecting to see when you visit the root? |
Note to self: |
I had the same issue where a localized multi-site was returning the wrong url for image assets in the non-default site. Your GlideUrlBuilder.php fix worked well. What kind of testing needs done to see this fix make it into the beta? Thanks!! |
I did use the following workaround: It seems, that it would be a cleaner solution to change the path here: |
Fixed by #2379 |
My sites config:
The asset path contains now the locale and the file could not be found.
The text was updated successfully, but these errors were encountered: