Skip to content

Conversation

@CodeVishal-17
Copy link

Adds a RedirectView to redirect /about to /foundation instead of returning a 404.

Fixes #2428

Copy link
Member

@ulgens ulgens left a comment

Choose a reason for hiding this comment

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

Several notes:

@CodeVishal-17
Copy link
Author

Thanks for the review!

I’ve updated the redirect to use pattern_name (via reverse()) instead of a hardcoded URL and added tests to validate the new behavior.

I’ll also make sure to have the git hooks installed locally for future commits.

"about/",
RedirectView.as_view(
pattern_name="members:developer-members",
permanent=True,
Copy link
Member

Choose a reason for hiding this comment

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

Not sure about permanent=True. @django/django-website Any thoughts?

Copy link
Author

Choose a reason for hiding this comment

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

Good question. I added permanent=True assuming this is intended as a long-term redirect since /about/ shouldn’t be served anymore and should consistently point to /foundation/.

That said, I’m happy to remove it or switch to a temporary redirect if that’s preferred here — happy to follow the project’s convention.

@CodeVishal-17
Copy link
Author

Thanks again for the review!

I believe I’ve addressed all the feedback and wanted to check if anything else is needed from my side. Happy to adjust permanent=True or anything else based on the project’s preference.

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 from /about to /foundation

2 participants