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

Start asset url's with a slash. #235

Closed
arjanfrans opened this issue Oct 17, 2018 · 1 comment
Closed

Start asset url's with a slash. #235

arjanfrans opened this issue Oct 17, 2018 · 1 comment

Comments

@arjanfrans
Copy link

arjanfrans commented Oct 17, 2018

I have multiple maildev instances behind a proxy, that does proxying for multiple stage/test environments. The url to the instances look like this:

example.com/environment-1/maildev/
example.com/environment-2/maildev/

This works if the url ends with a slash. But if I leave out the slash, it tries to load the assets relative to example.com/environment-2. I believe the easy fix for this would be to start the css/js url's with a slash.

@kgeis
Copy link
Collaborator

kgeis commented Oct 23, 2018

It seems to me that if you start the asset URLs with /, it will load them relative to example.com/.

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