footer inconsistency when visiting /learn
See original GitHub issueWhen visiting freecodecamp.org/learn
(via the yellow button or directly from the URL) it redirects to freecodecamp.org/learn/
This also happens on freecodecamp.dev
This URL does not have a footer.
When clicking on the menu and click the curriculum link. It redirects to freecodecamp.org/learn
which does have a footer.
Affected page https://www.freecodecamp.org/ and https://www.freecodecamp.dev
To Reproduce
- Go to freecodecamp.org.
- Click the yellow button.
- Scroll to the bottom.
- Click the menu button
- Click the curriculum link
- Scroll to the bottom
Expected behavior /learn/ should have a footer or /learn should not have a footer.
Screenshots If applicable, add screenshots to help explain your problem. you can drag and drop, png, jpg, gif, etc. in this box.
System (please complete the following information):
- Device: Desktop
- OS: Windows 10
- Browser: Chrome
- Version: 78
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Header Footer Inconsistencies - Microsoft Community
1. Every section in a document has three headers and three footers, whether you see them or not. 2. Most documents have only...
Read more >Footer spacing inconsistency with fancyhdr - TeX
I'm using the fancyhdr package with multiple columns. As you can see from the image bellow, the text spacing is inconsistent. I've tried...
Read more >How to get consistent spacing from the body to the footer in ...
You can reduce the distance between the text and the footer by decreasing the Bottom setting and/or increasing the Footer setting.
Read more >Website Footer Design: Best Practices, Tips and Many Examples
Let's look at the best practices and some great tips for designing a website footer, with many examples from live websites.
Read more >What is a Footer on a Website? What Should It Contain?
A website footer provides site visitors with a sense of consistency, as the same information will appear at the bottom of every single...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sounds about right. Precisely what, I’m not sure, but the fact it’s not reproducible in development pretty much guarantees that this is another weird hydration issue.
Unfortunately, for bugs like this, development mode isn’t very useful. Reason being, the bug is caused by a difference between the static site produced by
gatsby build
and the fully ‘hydrated’ app - React, basically.gatsby develop
is, essentially, a React app straight away.When navigating internally in production, like Sem demonstrated in his steps to reproduce, you’re using React and the footer shows as expected. When you reload a page you get some initial html and all the React JS gets loaded later. Occasionally something goes wrong and you don’t get exactly what you’re expecting.
The universal footer has been added, but I would like to get a sense of the usefulness of it, through analytics; @ahmadabdolsaheb Do you happen to have anything on the usage of the footer on /learn/?
Nothing specific, but the links in the footer get more traffic once they are added there.
Rule of thumb: All of the pages except the challenge pages and project submission pages should have a footer.