Skip to content

Allow href without .html extension for links between app's pages #2328

@gereleth

Description

@gereleth

Is your feature request related to a problem? Please describe.

I want to have several pages in my app with links between them.
Suppose my distDir contains two files: index.html and about.html.
My index page has a link to the About page:
<a href="about"> About </a>
On the web this link opens the about.html file.
But in Tauri this link doesn't work unless I put href="about.html" there.

Describe the solution you'd like
The link should work even if I don't add the .html part.

Describe alternatives you've considered
_

Additional context
_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions