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

Remove context path override prefix when handling a request #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

albanf
Copy link

@albanf albanf commented Jan 3, 2019

When the context path override is used, binary resources are not resolved properly to real file path, because the prefix is not removed from the request.
For instance if the prefix is defined as "/prefix", the request to an image could be:

/prefix/cb4294738625/css/images/myimage.png

And the resource which is loaded is /prefix//css/images/myimage.png (after removing the cache buster part).

This PR removes the prefix as soon as the request comes in.

…the real path to the resource is extracted properly
@albanf albanf force-pushed the remove-context-path-override-on-request branch from ed29c29 to 007fc66 Compare January 3, 2019 11:13
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

Successfully merging this pull request may close these issues.

1 participant