Skip to content

fix: resolve navbar logo not loading on nested pages#220

Merged
MrunaliniPachpute merged 1 commit into
MrunaliniPachpute:mainfrom
naitik2004:fix-navbar-logo
Oct 30, 2025
Merged

fix: resolve navbar logo not loading on nested pages#220
MrunaliniPachpute merged 1 commit into
MrunaliniPachpute:mainfrom
naitik2004:fix-navbar-logo

Conversation

@naitik2004

Copy link
Copy Markdown

🔖 ### Description
Fixed navbar logo image and homepage link across section pages (SegmentTree/segmentTree.html and others, as requested).
Replaced relative paths with absolute paths for the logo image (/Images/logo.png) and homepage link (/index.html) to resolve issues where:
The logo was not displaying after deployment
Clicking the logo caused a 404 "not found" error
These issues were present due to relative paths failing in deployed environments.
Everything worked fine on localhost.
Fixes: # (please enter the related issue number if you have one)

📸 Screenshots (if applicable)

image Screenshot 2025-10-30 at 6 42 25 PM

✅ ### Checklist
[x] My code follows the project’s guidelines and style.
[x] I have commented my code where necessary.
[ ] I have updated the documentation if needed.
[x] I have tested the changes and confirmed they work as expected.
[] My PR is linked to a GitHub issue.

🙌 ### Additional Notes
Learned about path sensitivity differences between local and deployed environments.
This fix ensures the navbar is robust and works on all environments.
If other sections/pages use the same navbar, this fix should be applied similarly for consistency.

@github-actions

Copy link
Copy Markdown

Thanks for creating a PR for your Issue! ☺️

Kindly Star the repo ⭐ We'll review Your PR as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@MrunaliniPachpute

Copy link
Copy Markdown
Owner

@naitik2004
I see that the Page Not Found issue has been resolved now — nice work! However, the logo still isn’t rendering correctly. I’ll go ahead and merge this PR for now, and you can create a separate PR to address the logo issue.

Also, I noticed you’ve updated only 5 topics — that’s fine for now.
Regarding the issue number, it’s visible next to your issue title in the Issues tab.

@MrunaliniPachpute MrunaliniPachpute merged commit cdb69c0 into MrunaliniPachpute:main Oct 30, 2025
1 check passed
@github-actions

Copy link
Copy Markdown

🎉 Congrats on getting your PR merged in, @naitik2004! 🙌🏼

Thanks for your contribution every effort helps improve the project.

Looking forward to seeing more from you! 🥳✨

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants