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 with hash or query params #28
Comments
It would be tremendously useful to be able to redirect based on URL parameters. See this Stack Overflow question. |
I think you both might be talking about different things. |
@parkr Yes I think you are right. I was asking to append a hash or query parameter to the redirect URL. For example:
or
This could be a config option when setting
It sounds like @danvk is looking for something like
This doesn't seem possible because the "/oudated-page" path can only resolve to a single file, and the |
I'd be very happy if I could include something like this in the frontmatter: redirect_from:
- /foo?bar=baz
- /foo?p=2 |
@danvk That's not possible with Jekyll alone because Jekyll is simply a static file generator. For the path "/foo" there exists one real file, which is likely "/foo/index.html". Inside the HTML file, there is a single |
It may bit different from both of your needs, but on the same topic. What about passing through hash and query params from the first request to the new URL? |
I'd like to be able to redirect to the given page with a hash and/or query parameters appended to the page's path. Is that possible or desirable to add?
The text was updated successfully, but these errors were encountered: