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

Redirect results in double extensions #1307

Closed
fredrikekelund opened this issue Feb 15, 2017 · 3 comments
Closed

Redirect results in double extensions #1307

fredrikekelund opened this issue Feb 15, 2017 · 3 comments

Comments

@fredrikekelund
Copy link
Contributor

I ran into an issue recently when trying to configure redirects for URL's that included file extensions. The file extensions was appended an additional time to the URL. This is an issue that seems to have been introduced in afc1823. There's no link to an issue or anything in the changelog, so I'm not sure what scenarios that change covers, but there looks to have been a small regression.

To reproduce the problem, configure a redirect like this for instance:

^/files(/.*)$: http://example.com$1

Then visit the URL http://grav.dev/files/example.zip (switching out the hostname as appropriate of course). You'll be automatically redirected to http://example.com/example.zip.zip.

@rhukster
Copy link
Member

I'll take a look at this.

@rhukster
Copy link
Member

Sorted.

@fredrikekelund
Copy link
Contributor Author

Thanks!

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

No branches or pull requests

2 participants