-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Url parameters ignored #9
Comments
Hi @TristanPct, You're right, thanks for your investigation ! Indeed for now we are only checking for anchors in URL but not for parameters... This means we will probably hard-reload the page for parameters instead of using the transition. Thanks again and we'll keep you in touch ASAP with a fix... Best regards, |
I have a doubt with the hard reload, url parameters can be used for pagination, http://example.com/listing and http://example.com/listing?page=2 share the same url but are not really the same pages and a transition could be nice. |
Ok fine, well look at it and enable transition for same pathname with parameters ! Have a nice day, |
I've just test the 1.3.9 release with url parameters and it does a full page reload every time I goes to an url with params (from Here is my sample test files: index.php<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="scripts/highway-1.3.9.js"></script>
</head>
<body router-wrapper>
<div router-view="index">
<?php echo $_SERVER['REQUEST_URI'] ?>
<hr>
<a href="page.php">Go to /page.php</a>
<br>
<a href="page.php?param=1">Go to /page.php?param=1</a>
<br>
<a href="index.php?param=new">Go to /index.php?param=new</a>
</div>
<script src="scripts/main.js"></script>
</body>
</html> page.php<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="scripts/highway-1.3.9.js"></script>
</head>
<body router-wrapper>
<div router-view="test-page">
<?php echo $_SERVER['REQUEST_URI'] ?>
<hr>
<a href="index.php">Go to /index.php</a>
<br>
<a href="index.php?param=1">Go to /index.php?param=1</a>
<br>
<a href="page.php?param=new">Go to /page.php?param=new</a>
</div>
<script src="scripts/main.js"></script>
</body>
</html>
|
Hello @TristanPct , For the moment it's not ideal but we are going to look deeper into this issue when time comes :-) Best regards, |
@TristanPct The release the v2.0.0 version of Highway will solve this issue. The transitions are now launched when parameters are added or removed from the URL even if the pathname is the same. You can find an example on the demo website. Best regards, |
Hello,
Thanks for this cool plugin.
After some testing I find a case where Highway ignore my link: if I'm on a page and the link target the same page but with parameters.
For example, I'm on http://example.com/listing and I click to go to http://example.com/listing?page=2 and nothing happen.
After investigations, it seems to come from a
Core#click
method which doesn't test url parameters:highway/src/core.js
Line 134 in 0e3ebc8
The text was updated successfully, but these errors were encountered: