Skip to content

Relative link when current location has #hash triggers a reload while it doesn't with no #hash or empty #  #579

@dmnsgn

Description

@dmnsgn

Setup

Two routes will render different pages:

page('/fruits', () => {})
page('/veggies', () => {})
page('/fruits/:name', () => {})
page('/veggies/:name', () => {})
page()

Problem

If on page /fruits/banana#calories you click on a link href "/veggies/tomato" (no other attribute), the page will reload. No problem with either /fruits/banana# or /fruits/banana. Sounds like an issue with handling hash?

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