Skip to content

Commit 72ec09b

Browse files
authored
Add redirect from versioned link to stable (#489)
* Change redirect facility * change redirect facilty agin
1 parent fd4dd19 commit 72ec09b

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

antora-playbook.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,20 @@ site:
77
keys:
88
enable_tracking: true
99

10+
# URL config settings.
11+
# docs: https://docs.antora.org/antora/latest/playbook/configure-urls/
1012
urls:
11-
# This replaces the component version in the URL of the latest stable version with 'stable'
12-
# i.e. /commons-operator/stable/index.html instead of /commons-operator/0.3/index.html
13+
# The symbolic name of the latest stable version, and how to redirect from/to it.
14+
# with 'redirect:to', the _actual_ version link is a redirect, and the _actual_ link
15+
# contains the symbolic name, i.e. stable.
16+
# As the user browses the latest docs, there will be 'stable' in the links. Also
17+
# search engines will see the 'stable' link and index those pages, so if we release
18+
# a new version, these links will be already in the index, which is good.
19+
# Linking to the latest version by version number is still possible, and after the
20+
# latest version is not latest anymore, the redirect is instead the actual URL.
1321
latest_version_segment: stable
22+
latest_version_segment_strategy: redirect:to
23+
# We deploy our site on netlify, so we use their redirect config mechanism
1424
redirect_facility: netlify
1525

1626
content:

0 commit comments

Comments
 (0)