Skip to content

OnPopState calls in case of section change #487

@bcsongi

Description

@bcsongi

In case of section change in the current page I call a link like:
http://localhost:8080/page/xxxid#section-How+does+Test+work%3F

We use also tab changes on the page, which look like
http://localhost:8080/page/xxxid

onPopState state function calls every time when I use this links, and modify the link on a wrong way when I use section change (remove the id):
http://localhost:8080/wiki/section-How+does+Test%3F

I could fix it on that way that I override the onPopState event handler like:
History.onPopState = function(event,extra){
if (History.getLocationHref().indexOf("#")!==-1) return;
..

Please fix it!

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