getzola / zola

A fast static site generator in a single binary with everything built-in. https://www.getzola.org
https://www.getzola.org
MIT License
14.2k stars 970 forks source link

`redirect_to` adds trailing slash - prohibiting the usage of links to id's #2676

Open trembel opened 1 month ago

trembel commented 1 month ago

Bug Report

When using redirect_to on a section, e.g.

+++
redirect_to = "/about/#me"
+++

a trailing slash is appended to the redirect link, which leads to a non-working redirect (e.g. not to the desired element)

Environment

Zola version: 0.19-2

Expected Behavior

Redirect to the desired element in the html page

Current Behavior

Redirect to the top of the html page

Keats commented 1 month ago

We should also allow using a Zola link (eg @/ pointing a md file)