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 adding recommendation with URL redirect breaking one-click-subscribe #18863

Merged
merged 4 commits into from Nov 3, 2023

Conversation

SimonBackx
Copy link
Contributor

@SimonBackx SimonBackx commented Nov 3, 2023

fixes https://github.com/TryGhost/Product/issues/4102

E.g. you recommend myghostsite.com, while that site redirects all traffic to www.myghostsite.com:

The redirect causes CORS issues, which means we cannot detect one-click-subscribe support.

  • This is fixed by moving the whole detection to the backend, which has the additional benefit that we can update it in the background without the frontend, and update it on every recommendation change.
  • This change also fixes existing recommendations by doing a check on boot (we can move this to a background job in the future).

…subscribe

fixes https://github.com/TryGhost/Product/issues/4102

The redirect causes CORS issues, which means we cannot detect one-click-subscribe support.

- This is fixed by moving the whole detection to the backend, which has the additional benefit that we can update it in the background.
- This change also fixes existing recommendations by doing a check on boot (we can move this to a background job in the future).
@SimonBackx SimonBackx merged commit fee402a into TryGhost:main Nov 3, 2023
18 checks passed
@SimonBackx SimonBackx deleted the fixed-recommendations-cors branch November 3, 2023 14:02
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.

None yet

1 participant