Skip to content

Broken links to anchors for non-ASCII symbols on wiki TOC #29877

Closed
@crackedmind

Description

@crackedmind

Description

Anchors with non-ASCII symbols encodes twice and then isn't working anymore. Disabling javascript helps.

Create wiki page with title

# 气候宜人

It renders as #user-content-%E6%B0%94%E5%80%99%E5%AE%9C%E4%BA%BA but javascript modifies this to #%25E6%25B0%2594%25E5%2580%2599%25E5%25AE%259C%25E4%25BA%25BA

Seems it is regression since #29666 #29305

Gitea Version

1.21.8

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

from command line

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions