mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
Fix broken switchToPad method
This commit is contained in:
parent
63c836ad55
commit
856fc5975b
1 changed files with 2 additions and 2 deletions
|
@ -465,8 +465,8 @@ var pad = {
|
|||
},
|
||||
switchToPad: function(padId)
|
||||
{
|
||||
var newHref = new RegExp(/.*\/p\/[^\/]+/).exec(document.location.pathname) || clientVars.padId;
|
||||
newHref = newHref[0];
|
||||
var options = document.location.href.split('?')[1];
|
||||
var newHref = padId;
|
||||
if (typeof options != "undefined" && options != null){
|
||||
newHref = newHref + '?' + options;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue