score-spec / docs

Docs for Score Specification.
https://docs.score.dev/docs/
Apache License 2.0
6 stars 12 forks source link

Add custom alias template to fix redirects #77

Closed TobiasBabin closed 7 months ago

TobiasBabin commented 7 months ago

Thank you for submitting this pull request! We appreciate you spending the time to work on these changes.

What is the motivation?

The recent page restructurings introduced page redirects to continue serving the pre-existing URLs. Those redirects, implemented as Hugo alias entries, do not work properly and consistently link to a http://localhost... address.

What does this change do?

The change introduces a custom alias template as per the official documentation. It makes sure that the relative link is used at all times for redirects.

What is your testing strategy?

I inspected the index.html files that Hugo generates for each redirect location. Where previously the redirect target was an absolute URL http://localhost:1313/some/page..., it is now a relative URL /some/page.

Have you read the Contributing Guidelines?