Skip to content

Percent-escaped hash within URL fragment are not handled correctly #198

@cl0ne

Description

@cl0ne

Linking to a specific part of a documentation page with sidebar open uses an unescaped # within the URL fragment (to specify a fragment part for URL to be loaded within reference's content frame). That works perfectly fine due to forgiving nature of web browsers, but these URLs doesn't conform to RFC 3986. According to RFC, any other # within the fragment part have to be percent-encoded (see also relevant SO answer). Current implementation cannot load RFC-compliant URLs and will give 404.

For example: https://lazka.github.io/pgi-docs/index.html#Gtk-3.0/functions.html%23Gtk.main should be load the same page as https://lazka.github.io/pgi-docs/index.html#Gtk-3.0/functions.html#Gtk.main.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions