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

🔧 Display 404 page #54

Merged
merged 1 commit into from
Feb 3, 2025
Merged

Conversation

ebouchut
Copy link
Collaborator

@ebouchut ebouchut commented Feb 3, 2025

This PR ensures /looptips/ path prefix is present locally and on GitHub Pages URLs.
It fixes an issue where the 404 page was broken due to invalid links.

Even if the /looptips/ path prefix is always present in LoopTips' static URLs it is not in dynamic URLs.
Some URLs are built dynamically like the ones in 404.html which makes this page broken because its assets (CSS, images...) are searched in / instead of their actual location /looptips/.

This PR fixes this by making things explicit by adding this prefix to the path using the site_url property:

site_url: https://loopkit.github.io/looptips/

Below is a screenshot of the broken 404.html when rendered.

CleanShot 2025-02-03 at 08 44 23@2x

🔧 Ensure "/looptips/" path prefix is present locally and on GitHub Pages
@ebouchut ebouchut added the config label Feb 3, 2025
@ebouchut ebouchut self-assigned this Feb 3, 2025
@ebouchut ebouchut merged commit f5ca3c0 into LoopKit:main Feb 3, 2025
@ebouchut ebouchut deleted the fix/display_404_page branch February 3, 2025 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant