-
Notifications
You must be signed in to change notification settings - Fork 77
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
301 redirects shouldn't be followed #9
Comments
+1 |
I'm +1 to this, just need free cycles to get it written and relased. If someone has time to put a PR together, that'd help - thanks! |
I'll just pull it in to the 0.3 release - thanks for all the work on this! |
This is included in 0.3, and out - let me know if you hit any snags! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ran into an issue while trying to handle 301 redirects:
When the prerender server (either self-hosted or on prerender.io) sends a 301 redirection, django-seo-js responds with a 200, it seems to follow redirections.
IMHO this is not the expected behaviour, Google needs to know that the url has changed. I think the simple fix should be to add
allow_redirects=False
in the call torequest.get
:Is there any scenario where we want redirects to be followed? If so, we can add a global setting, otherwise this should be disabled by default.
The text was updated successfully, but these errors were encountered: