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

Fix: Properly handle relative URLs #333

Merged

Conversation

sascha-wolf
Copy link
Contributor

Currently the theme assumes that the user uses absolute URLs everywhere or that he has set canonifyURLs to true. It also assumes that the baseURL is always set. This PR remedies both situations by making relevant parts more lenient towards differing configurations:

  • it checks if the baseURL is set in the menu partial to not generate incorrect links
  • it improves and fixes handling of relative URLs for the cover image

This makes it possible to use the theme and deploy the page to a temporary URL for testing purposes without breaking all the styling.

@kakawait kakawait added this to the 0.5.0 milestone Jul 3, 2019
@kakawait kakawait self-assigned this Mar 29, 2020
@kakawait kakawait added the enhancement New feature or request label Mar 29, 2020
@414n 414n mentioned this pull request Jul 19, 2020
@kakawait kakawait modified the milestones: 0.5.0-BETA, 0.5.1-BETA Jul 30, 2021
@kakawait kakawait modified the milestones: 0.5.1-BETA, 0.5.2-BETA Aug 27, 2021
@kakawait kakawait merged commit 62893d7 into kakawait:develop Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants