Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Incorrect handling of protocol relative URLs #241

Open
@johndaniels

Description

@johndaniels

in Firefox and Chrome, history.pushState('//example.com/foo') will be equivalent to history.pushSate('/foo') bringing you to 'http://example.com/foo'.

In history.js, history.pushState('//example.com/foo') brings you to 'http://example.com/example.com/foo'. History.js should recognize that as a protocol relative URL and treat it accordingly.

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