jQuery.history and URL with parameters
Hello,
I have a simple question for those who are used to the history plugin (
here).
Usually the history plugin is used this way :
-
<a href="#page1.html" rel="history">blablabla</a><br>
<a href="#page2.html" rel="history">blablabla</a><br>
Instead of using different pageX.html files, I would like to use one simple page.php file with a parameter in the URL. This way :
-
<a href="#main.php?page=1" rel="history">blablabla</a><br>
<a href="#main.php?page=2" rel="history">blablabla</a><br>
But the history plugin doesn't support parameters in the URL (in fact it removes the part of the link that correspond to the parameter in the historyLoad function, here :
-
historyLoad: function(hash){
var newhash;
hash = decodeURIComponent(hash.replace(/\?.*$/, ''));
Is there a simple way to by-pass this limitation ?
Thx,
Youpla