Skip to content

Add redirect to about.readthedocs.com for logged out users #10570

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 3 commits into from
Aug 1, 2023

Conversation

ericholscher
Copy link
Member

@ericholscher ericholscher commented Jul 25, 2023

This is the last step in our migration to a new marketing page,
showing it to logged out users on readthedocs.org.

Currently logged in users will hit a homepage at the root,
but this change makes that page redirect to the dashboard for community users.

Fixes #10571

This is the last step in our migration to a new marketing page,
showing it to logged out users on readthedocs.org.

Currently logged in users will hit a homepage at the root,
but this change makes that page redirect to the dashboard for community users.
@ericholscher ericholscher requested a review from a team as a code owner July 25, 2023 22:04
@ericholscher ericholscher requested a review from stsewd July 25, 2023 22:04
@ericholscher ericholscher requested a review from a team as a code owner July 26, 2023 22:06
@ericholscher ericholscher requested a review from agjohnson July 26, 2023 22:06

# Redirect to ``about.`` in production
if not settings.DEBUG:
query_string = "?ref=dotorg-homepage"
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm guessing we don't use this view on the commercial application, as we are already adding this to the requests on commercial. But if we do, this query string could be conditional based on the application instance.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea, we're overriding it. Could probably stop now though, if we wanted 🤔

@ericholscher
Copy link
Member Author

@stsewd I expanded the logic removal here, so could use another review 👍

@ericholscher ericholscher requested a review from stsewd July 26, 2023 22:24
Copy link
Member

@stsewd stsewd left a comment

Choose a reason for hiding this comment

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

We can remove the override from .com once we are settled on this redirect on .org 👍

@ericholscher
Copy link
Member Author

Not going to merge this until we're 100% sure we're ready with the marketing website. Might hold off a week or two, but good to have it ready 👍

@ericholscher ericholscher added Status: blocked Issue is blocked on another issue and removed Status: blocked Issue is blocked on another issue labels Jul 26, 2023
@ericholscher
Copy link
Member Author

Our latest deploy is now out, so going to merge this so it's ready for next week 🎉

@ericholscher ericholscher merged commit 3f6aec3 into main Aug 1, 2023
@ericholscher ericholscher deleted the redirect-index branch August 1, 2023 16:14
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.

Redirect readthedocs.org logged out users to about.
3 participants