Skip to content

add trailing slashes to prevent github.io 301, splat for query params #716

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

Merged
merged 1 commit into from
Jun 10, 2019

Conversation

acao
Copy link
Member

@acao acao commented Jun 10, 2019

Ope! After talking to Netlify support who's been super helpful, he pointed out that we are pointing to a githubpages path that forces a 301 redirect. Adding the trailing slash should fix this, as github.io will send a 200 for graphql.github.io/swapi-graphql/ and a 301 for graphql.github.io/swapi-graphql to the latter.

(added) a splat for QPs as well, such as graphql.org/swapi-graphql/?query=234234234.
this should hopefully fix legacy links, where folks have GraphQL query examples/etc that point to this domain

@acao
Copy link
Member Author

acao commented Jun 10, 2019

@JoelMarcey @caniszczyk this should be the permanent fix, if you have time to review please!

@caniszczyk caniszczyk merged commit ebcec2f into graphql:source Jun 10, 2019
Dipeshwagle pushed a commit to Dipeshwagle/graphql.github.io that referenced this pull request Aug 18, 2020
add trailing slashes to prevent github.io 301, splat for query params
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.

2 participants