-
Notifications
You must be signed in to change notification settings - Fork 114
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_to appears not to work #107
Comments
More background! Sleuthing by @jeremiak has shown that adding To correct one of the examples above: Bad:
Good:
|
It looks like I would guess that the problem is that the page has a default layout set, and we should be turning it off here, but we are not. No idea what adding |
Interesting, I'll give that a shot and see if it helps. |
I have investigated this as below:
|
I can confirm this also - the page generated is called index not index.html. If you manually put in "index" instead of index.html, my browser downloads a file which contains the redirect html code. Note that other page redirects work fine - it is just the name index that seems to go wrong. |
Incidentally, you can work around the issue by replacing the index.md with an index.html with redirect code in it:
|
It is correct, but not enough. When using |
I have created a PR to fix this, please check it (#108) |
what is the status of this issue? We're seeing the same problem. |
I have not had time to look into this unfortunately. Would you be able to Michael Ferranti notifications@github.com schrieb am Di., 14. Juni 2016
|
@parkr Does it help to mention that we're using the github-pages gem? I don't know when this stopped working exactly, but it was definately working before, so probably somethign with github-pages. |
@parkr Not sure if this is what you mean but we're using it on 18f.gsa.gov. This URL https://18f.gsa.gov/tags/how%20we%20work/ should redirect to https://18f.gsa.gov/tags/how-we-work/ The repo is at https://github.com/18f/18f.gsa.gov |
This should fix many currently broken redirects. For more information about the problem solved, see this issue and the pull requests referenced: jekyll/jekyll-redirect-from#107
Hello, we've been using this product for a while now and recently noticed all of our pages that use
redirect_to
are not redirecting to the expected destination.As an example: this URL https://18f.gsa.gov/tags/day%20in%20the%20life/ should redirect to this url: https://18f.gsa.gov/tags/day-in-the-life/ but as you can see it generates a blank page instead. Here's the source file that generates that page.
I haven't tested it with all the pages using
redirect_to
but/tags/demo day/
and/how we work/
are also failing.Pages using
redirect_from
appear to be working correctly.The text was updated successfully, but these errors were encountered: