mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 06:37:10 -04:00
don't use document.referrer to return to the pad from the timeslider, this breaks if you reload the page. better: use a substring of document.location.href
This commit is contained in:
parent
cfc315a4a6
commit
ced79fe867
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@
|
||||||
<!-- termporary place holder-->
|
<!-- termporary place holder-->
|
||||||
<a id = "returnbutton">Return to pad</a>
|
<a id = "returnbutton">Return to pad</a>
|
||||||
<script>
|
<script>
|
||||||
$("#returnbutton").attr("href", document.referrer);
|
$("#returnbutton").attr("href", document.location.href.substring(0,document.location.href.lastIndexOf("/")));
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue