Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
trembel opened this issue Oct 23, 2024 · 1 comment
Open
Labels

Comments

@trembel
Copy link

trembel commented Oct 23, 2024

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 Keats added the bug label Oct 24, 2024
@Keats
Copy link
Collaborator

Keats commented Oct 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@Keats @trembel and others