mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
fixes #2570
This commit is contained in:
parent
0a9c631410
commit
48c2b7cde1
1 changed files with 5 additions and 4 deletions
|
@ -456,10 +456,11 @@ var pad = {
|
|||
},
|
||||
switchToPad: function(padId)
|
||||
{
|
||||
var options = document.location.href.split('?')[1];
|
||||
var newHref = "/p/" + padId;
|
||||
if (options != null)
|
||||
newHref = newHref + '?' + options;
|
||||
var newHref = new RegExp(/.*\/p\/[^\/]+/).exec(document.location.pathname) || clientVars.padId;
|
||||
newHref = newHref[0];
|
||||
if (options != null){
|
||||
newHref = newHref + '?' + options;
|
||||
}
|
||||
|
||||
if(window.history && window.history.pushState)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue