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

Fixed redirect issue with private sites #9960

Merged
merged 1 commit into from
Oct 8, 2018
Merged

Fixed redirect issue with private sites #9960

merged 1 commit into from
Oct 8, 2018

Conversation

allouis
Copy link
Contributor

@allouis allouis commented Oct 8, 2018

closes #9959

This issue existed because the logic assumed that if there were no
query parameters then there would be no query object. However this is
not the case. What we really wanted to check was for the existence of an
"r" query param - the code has been refactor to explicitly do this now.

Copy link
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to add the bug emoji 👍 Feel free to self merge

@allouis allouis merged commit e392fe5 into TryGhost:master Oct 8, 2018
@allouis allouis deleted the correct-check-for-query-param branch October 8, 2018 09:31
closes #9959

This issue existed because the logic assumed that if there were no
query parameters then there would be no `query` object. However this is
not the case. What we really wanted to check was for the existence of an
"r" query param - the code has been refactor to explicitly do this now.
allouis added a commit that referenced this pull request Nov 7, 2018
closes #9959

This issue existed because the logic assumed that if there were no
query parameters then there would be no `query` object. However this is
not the case. What we really wanted to check was for the existence of an
"r" query param - the code has been refactor to explicitly do this now.
allouis added a commit that referenced this pull request Nov 7, 2018
* 1.x:
  Version bump to 1.25.6
  Updated Ghost-Admin to 1.25.6
  Fixed sanitization issue in subscribers
  🐛 Fixed redirect issue with private sites (#9960)
  Updated private-sites to not redirect to full urls
kirrg001 added a commit to kirrg001/Ghost that referenced this pull request Nov 7, 2018
closes TryGhost#9959

This issue existed because the logic assumed that if there were no
query parameters then there would be no `query` object. However this is
not the case. What we really wanted to check was for the existence of an
"r" query param - the code has been refactor to explicitly do this now.
kirrg001 added a commit that referenced this pull request Nov 7, 2018
closes #9959

This issue existed because the logic assumed that if there were no
query parameters then there would be no `query` object. However this is
not the case. What we really wanted to check was for the existence of an
"r" query param - the code has been refactor to explicitly do this now.
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.

Private site redirects to /undefined when visiting direct to /private/
2 participants