Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

parseUrl and makeUrlAbsolute incorrectly parse and generate URLs with the Windows 'res:' protocol. #8355

Open
@bbesseling

Description

@bbesseling

In a Windows app where we want to use jqm as the user interface in an IWebBrowser2,
when the document base is the Windows app resource URL

res://device:\\directory\\file.exe/resource.html,

the function jQuery.mobile.path.parseUrl incorrectly parses the 'device' part (which could be e.g. 'C' or 'x-wmapp1')
into the authority, host and hostname fields.
This causes the function jQuery.mobile.path.makeUrlAbsolute to convert #two into

res://device/:\\directory\\file.exe/resource.html#two with a spurious '/' after device.

This causes all non data-ajax="false" navigation to fail

The res:/' protocol should also be treated like the file:/// protocol.
respathissue.zip

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