fix: Consistent URL endings concept (#411)#827
fix: Consistent URL endings concept (#411)#827Aayushman-nvm wants to merge 1 commit intoprecice:masterfrom
Conversation
|
@Aayushman-nvm I don't disagree with the need for some of the changes, but this PR touches too many different things at once, for which reason there are already conflicts. Instead of closing this, I suggest selecting one of the aspects (the most important, in your opinion), and focusing the PR to that aspect. There is no reason to touch all of these now. Please also don't touch the formatting of lines you are not changing for the needs of the PR. Make sure that the "files changed" view only includes the intended changes: https://github.com/precice/precice.github.io/pull/827/changes |
|
This pull request has been mentioned on preCICE Forum on Discourse. There might be relevant details there: https://precice.discourse.group/t/introduction-website-modernization/2852/1 |
Summary
Standardizes the
Aboutpage to use an extensionless permalink (/about/) and fixes relative asset paths that broke when switching away from/about.html.Changes
about.html→/about/, with aredirect_from: /about.htmlredirect.htmlremoval hacks with{{ page.url | absolute_url }}images/andcss/references using| relative_urlto prevent/about/images/...misresolution.htmllinks (e.g.privacy.html) with extensionless equivalents (e.g./privacy/)Note
head.htmlto remove the assumption of a flat URL structure (i.e., direct.htmlfile endings). The previous logic did not account for nested paths or directory-based URLs.Why
permalink: prettyand Hugo's default URL structureTesting
/about/loads correctly/about.htmlredirects to/about/