mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
seems right
This commit is contained in:
parent
0ad09c17db
commit
275592e423
1 changed files with 2 additions and 1 deletions
|
@ -188,7 +188,8 @@ var padimpexp = (function()
|
||||||
pad = _pad;
|
pad = _pad;
|
||||||
|
|
||||||
//get /p/padname
|
//get /p/padname
|
||||||
var pad_root_path = new RegExp(/.*\/p\/[^\/]+/).exec(document.location.pathname);
|
// if /p/ isn't available due to a rewrite we use the clientVars padId
|
||||||
|
var pad_root_path = new RegExp(/.*\/p\/[^\/]+/).exec(document.location.pathname) || clientVars.padId;
|
||||||
//get http://example.com/p/padname without Params
|
//get http://example.com/p/padname without Params
|
||||||
var pad_root_url = document.location.protocol + '//' + document.location.host + document.location.pathname;
|
var pad_root_url = document.location.protocol + '//' + document.location.host + document.location.pathname;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue