fixes #2570
This commit is contained in:
parent
0a9c631410
commit
48c2b7cde1
|
@ -456,10 +456,11 @@ var pad = {
|
||||||
},
|
},
|
||||||
switchToPad: function(padId)
|
switchToPad: function(padId)
|
||||||
{
|
{
|
||||||
var options = document.location.href.split('?')[1];
|
var newHref = new RegExp(/.*\/p\/[^\/]+/).exec(document.location.pathname) || clientVars.padId;
|
||||||
var newHref = "/p/" + padId;
|
newHref = newHref[0];
|
||||||
if (options != null)
|
if (options != null){
|
||||||
newHref = newHref + '?' + options;
|
newHref = newHref + '?' + options;
|
||||||
|
}
|
||||||
|
|
||||||
if(window.history && window.history.pushState)
|
if(window.history && window.history.pushState)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue