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.

Base tag broken: Images/Links have invalid paths in sub-directory documents. #1508

Closed
@jblas

Description

@jblas

If you use FireFox 4 or any other browser (Chrome) that shows you the href of a link when you hover over it, and you navigate to:

http://jquerymobile.com/test/

then click on "Pages & dialogs", after the new page transitions in, hover over the listview items on the page and see what the browser displays. I'm seeing URLs like this:

http://jquerymobile.com/test//test/docs/pages/docs-pages.html

Notice the "/test//test" in the middle? it should be displaying:

http://jquerymobile.com/test/docs/pages/docs-pages.html

This seems to be due to the fact that we switched to passing in site relative URLs into base.set(). When the base code was originally written, I think it assumed that the path passed in would always be document relative which is why it prepends the HREF passed in with docbase..

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions