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 broken footer links that show 404 page. #1937

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

garybadwal
Copy link

@garybadwal garybadwal commented Feb 8, 2025

Closes: #1880

The broken link issue that occurs when a user clicks on the foundation links that are statically provided in the footer section of https://docs.djangoproject.com/ has been fixed. This update will resolve the problem without affecting the way things really work.

@garybadwal garybadwal changed the title Update footer links to use URL template tags for better maintainability Fixed broken footer links that show 404 page. Feb 9, 2025
@garybadwal
Copy link
Author

Hi @sarahboyce, sorry to disturb you, but it would be helpful if you could review this for once.

Copy link
Contributor

@sarahboyce sarahboyce left a comment

Choose a reason for hiding this comment

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

I would expect something more like this
There are a couple further down we can update as well

<li><a href="https://django.threadless.com/" target="_blank">Official merchandise store</a></li>
<li><a href="/foundation/donate/#benevity-giving">Benevity Workplace Giving Program</a></li>
<li><a href="{% url 'homepage' %}foundation/donate/#benevity-giving">Benevity Workplace Giving Program</a></li>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<li><a href="{% url 'homepage' %}foundation/donate/#benevity-giving">Benevity Workplace Giving Program</a></li>
<li><a href="{% url 'fundraising:index' %}#benevity-giving">Benevity Workplace Giving Program</a></li>

@@ -57,9 +57,9 @@ <h2>Follow Us</h2>
<h2>Support Us</h2>
<ul>
<li><a href="{% url "fundraising:index" %}">Sponsor Django</a></li>
<li><a href="/foundation/corporate-membership/">Corporate membership</a></li>
<li><a href="{% url 'homepage' %}foundation/corporate-membership/">Corporate membership</a></li>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<li><a href="{% url 'homepage' %}foundation/corporate-membership/">Corporate membership</a></li>
<li><a href="{% url 'members:corporate-members' %}">Corporate membership</a></li>

@garybadwal
Copy link
Author

I would expect something more like this

There are a couple further down we can update as well

Sure, I'll fix this thank you for your reviews.

@Gurpreet-CrossML
Copy link

Gurpreet-CrossML commented Feb 10, 2025

I would expect something more like this There are a couple further down we can update as well

Hi Sarah,
I have just a quick question: I was trying to open foundation links at /foundation, but it gives me a 404 error when I pull it from the main branch on my local. I'm also not able to open the About and News pages.

Are there any changes in the main branch?

it also don't show me these 2 links:
-> https://www.djangoproject.com/foundation/
-> https://www.djangoproject.com/foundation/corporate-membership/
-> https://www.djangoproject.com/foundation/donate/

image

@sarahboyce
Copy link
Contributor

I think they are coming from flatpages and so we don't have the data locally. I think you can leave them as they are (we might want to make a fixture for these in future)

@Gurpreet-CrossML
Copy link

I think they are coming from flatpages and so we don't have the data locally. I think you can leave them as they are (we might want to make a fixture for these in future)

Ok, Then for now can we consider this PR as a fix? Until you make the fixtures for this?
Because then the issue of the 404 page will persist from the doc host.

@sarahboyce
Copy link
Contributor

sarahboyce commented Feb 10, 2025

Ok, Then for now can we consider this PR as a fix?

The previous suggestions I gave are still valid, I have tested locally 👍

@garybadwal
Copy link
Author

garybadwal commented Feb 10, 2025

Ok, Then for now can we consider this PR as a fix?

The previous suggestions I gave are still valid, I have tested locally 👍

Ok got it.
But in that case how can I reverse to namespace for the Flat pages.

If you can give me a lead in this I can update this PR.

@Gurpreet-CrossML
Copy link

Hi @sarahboyce, sorry to disturb you just checking if you can help me with the next step in this?
As there are Flatpages how can I provide reverse to these, or if this fix work until you do the fixtures for Flatpages to be included in the project itself?

@sarahboyce
Copy link
Contributor

I think the suggested line changes are still valid, and are unrelated to flatpages. I have commented on each

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.

Broken links when using the footer from the Docs site
3 participants