summaryrefslogtreecommitdiff
path: root/src/string_utils.rs
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2026-11-10 11:02:27 +1300
committerBen Bridle <ben@derelict.engineering>2026-11-10 11:05:27 +1300
commitaecf433eb9725fb65f785d27d946fc58f7c76ea5 (patch)
tree0e41aa7c7d4cf06c2bcc3665bd117a88b033425c /src/string_utils.rs
parent9f8ab76c64bc9b29e994e63d5e24498d1da14bc2 (diff)
downloadtoaster-aecf433eb9725fb65f785d27d946fc58f7c76ea5.zip
Preserve URL fragment on HTML redirect
The generated HTML redirect pages will now preserve any URL fragment when redirecting to the new page, so that the URL '/page#heading' can now redirect to '/real-page#heading'. Previously, the URL fragment would just be dropped. The URL fragment will additionally be run through a transformation function to match the URL style generated by Toaster. The meta redirect approach still works if JavaScript is not available.
Diffstat (limited to 'src/string_utils.rs')
0 files changed, 0 insertions, 0 deletions