mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-13 00:53:10 +00:00
If data-url is set on a page div when it returns from the server, it's value will be used to replace the url in the hash, and as the base url for future requests if it adds additional segments (such as a trailing slash). This will enable developers to work around the limitation of directory links requiring a trailing slash, and will also allow developers to specify a new url after a redirect occurs (such as after a login). Fixes #867
24 lines
No EOL
659 B
HTML
24 lines
No EOL
659 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>jQuery Mobile Framework - Test URL Example</title>
|
|
<link rel="stylesheet" href="../../themes/default/" />
|
|
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
|
|
<script type="text/javascript" src="../../js/jquery.js"></script>
|
|
<script type="text/javascript" src="../../js/"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<div data-role="page" data-url="docs-links-urltest/">
|
|
<div data-role="header">
|
|
<h1>URL Test Page</h1>
|
|
</div>
|
|
<div data-role="content">
|
|
<p>This is a regular page that updated the url with a different value than was requested.</p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</html> |