Point frontpage card "Latest" button at the /latest/ permalink #121
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
qwc-open/asiakirjat!121
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/frontpage-card-latest-link"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to the latest-permalink work (#119/#120).
The Latest button on the home-page project cards linked to the concrete newest version (
/project/{slug}/{tag}/), so clicking it landed the visitor on a version-pinned URL. Now it links to the rolling/project/{slug}/latest/permalink — so the URL you land on (and can copy from the address bar to share) always tracks the newest version.internal/templates/partials/project_card.html: the Latest button href →/project/{slug}/latest/. Still gated onLatestVersion, so it only renders when the project has at least one version (and/latest/would resolve).TestFrontpageCardLinksToLatestPermalinkasserts the card links to/latest/and not the concrete tag.One file of real change plus a test and a doc line. No Go logic change —
LatestVersionis still computed for the button's visibility gate.🤖 Generated with Claude Code
The home-page project cards' Latest button linked to the concrete newest version (/project/{slug}/{tag}/), so a visitor landed on a version-pinned URL. Link it to the rolling /project/{slug}/latest/ permalink instead, so the URL someone lands on (and can copy/share) always tracks the newest version. The button is still gated on LatestVersion, so it only appears when the project has at least one version. Adds a frontpage test asserting the card links to /latest/ and not the concrete tag; notes it in the first-project docs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>