Skip to content

Commit eb1f014

Browse files
committed
Add redirect tests for old documentation URLs
1 parent 308502c commit eb1f014

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/subdomain_redirects.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ tests=$(grep -Ev '^[ ]*$' <<< "\
3636
3737
# Verify that the list subdomain is redirected to the Google group mailling list and retains the URL path
3838
'list.ledger-cli.org/c/xM3EEukxYys 302:https://groups.google.com/g/ledger-cli/c/xM3EEukxYys'
39+
40+
# Verify that the old web documentation URL is redirected to the current documentation
41+
'ledger-cli.org/3.0/doc/ledger3.html 301:https://ledger-cli.org/doc/ledger3.html'
42+
43+
# Verify that the old print documentation URL is redirected to the current documentation
44+
'ledger-cli.org/3.0/doc/ledger3.pdf 301:https://ledger-cli.org/doc/ledger3.pdf'
3945
")
4046

4147
exit_code=0

0 commit comments

Comments
 (0)