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

404 page not found on one of the links #1590

Open
P1car00n opened this issue Jul 20, 2024 · 3 comments
Open

404 page not found on one of the links #1590

P1car00n opened this issue Jul 20, 2024 · 3 comments

Comments

@P1car00n
Copy link

  1. Open this page: https://docs.djangoproject.com/foundation/corporate-membership/
  2. Click on 'Become a DSF corporate member'
  3. Follow the wrong link: https://docs.djangoproject.com/foundation/corporate-membership/join/ instead of https://www.djangoproject.com/foundation/corporate-membership/join/
@bmispelon
Copy link
Member

Hi and thanks for the report!

The issue here is that the page /foundation/corporate-membership/ should not be available under the docs subdomain. It should only be available under the www domain (where the link works correctly).

I've had a quick look in the URL configuration of the project and I don't really understand why the page at https://docs.djangoproject.com/foundation/corporate-membership/ is available. From what I can see, only documentation pages should be served under the docs domain.

@WajahatKanju
Copy link
Contributor

The page /foundation/corporate-membership/ returns a 404 error on the production environment but is working as expected - returns 404 - in the local setup.

  • Cannot replicate this issue in my local environment where it correctly returns a 404 error.

  • The URL /foundation/corporate-membership/ on a local setup works as expected, returning a 404 error.

  • It's possible that /foundation/corporate-membership/ is being interpreted wrong on the production environment.

  • More specifically, /foundation gets matched as a language and /corporate-membership as a version in the URL patterns. This could be the reason why it resolves the URL to something different and returns 404.

Steps Taken:

  • Cross-checked how the URLs are handled and configured on the local setup.
    They have verified that DocumentRelease and document path handling is right locally.

It seems the problem is particular to the configuration or data of the production environment because it doesn't show up on a local setup where everything works just fine. There is a need for further investigation into URL routing and pattern matching in the production environment.

@WajahatKanju
Copy link
Contributor

WajahatKanju commented Sep 1, 2024

Further more the latest version that i am using does not have this URL path at all /foundation/corporate-membership/
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants