Skip to content

Add stable link to latest release notes using Hugo aliases#123

Merged
magnesj merged 5 commits intonext-major-releasefrom
copilot/add-stable-link-release-notes
Feb 5, 2026
Merged

Add stable link to latest release notes using Hugo aliases#123
magnesj merged 5 commits intonext-major-releasefrom
copilot/add-stable-link-release-notes

Conversation

Copy link
Contributor

Copilot AI commented Feb 5, 2026

Release notes are versioned by date (e.g., releasenotes_2025_12.md), requiring users to know the exact filename. This adds a stable /releases/release-notes/latest/ URL that always redirects to the most recent release.

Changes

  • Added alias to latest release note: releasenotes_2025_12.md now includes aliases = ["/releases/release-notes/latest/"] in front matter, generating an HTML meta refresh redirect
  • Added visible link on Release Notes page: A prominent "What's New - Latest Release" link now appears on the Release Notes index page (content/releases/release-notes/_index.md), providing easy access to the latest release
  • Documented maintenance: README now includes instructions to move the alias when publishing new releases
  • Added inline documentation: Comment in _index.md explains the redirect mechanism

Release Notes page with latest release link

Maintenance

When publishing a new release:

  1. Add aliases = ["/releases/release-notes/latest/"] to the new release note
  2. Remove the alias from the previous release note

Hugo generates a redirect at build time. No server-side configuration or additional dependencies required.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add a stable link to latest release notes</issue_title>
<issue_description>Release notes are located in https://github.com/OPM/ResInsight-UserDocumentation/tree/next-major-release/content/releases/release-notes
Add a stable link that points to the latest release notes using Hugo</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits February 5, 2026 05:38
Co-authored-by: magnesj <1793152+magnesj@users.noreply.github.com>
Co-authored-by: magnesj <1793152+magnesj@users.noreply.github.com>
Copilot AI changed the title [WIP] Add a stable link to latest release notes Add stable link to latest release notes using Hugo aliases Feb 5, 2026
Copilot AI requested a review from magnesj February 5, 2026 05:41
@magnesj
Copy link
Member

magnesj commented Feb 5, 2026

@copilot Add the link to the front page content/releases/release-notes/_index.md

Co-authored-by: magnesj <1793152+magnesj@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 5, 2026

@copilot Add the link to the front page content/releases/release-notes/_index.md

Added a prominent link to the latest release notes on the Release Notes page (commit a599ca4).

Release Notes page with latest release link

The link uses a relative path (latest/) which will automatically redirect to the current latest release notes using Hugo's alias feature.

@magnesj magnesj marked this pull request as ready for review February 5, 2026 06:11
@magnesj magnesj merged commit 6850101 into next-major-release Feb 5, 2026
3 checks passed
@magnesj magnesj deleted the copilot/add-stable-link-release-notes branch February 5, 2026 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a stable link to latest release notes

2 participants