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.
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 ahttp://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 URLhttp://localhost:1313/some/page...
, it is now a relative URL/some/page
.Have you read the Contributing Guidelines?