From 67c164df07efdb6314ad214fa2e01478913f5305 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 6 Jul 2020 22:26:19 +0200 Subject: [PATCH] FIX reposition was broken if url end with #anchor --- htdocs/core/js/lib_foot.js.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/js/lib_foot.js.php b/htdocs/core/js/lib_foot.js.php index 40596596b97..d04379210a6 100644 --- a/htdocs/core/js/lib_foot.js.php +++ b/htdocs/core/js/lib_foot.js.php @@ -184,7 +184,8 @@ print ' { if (this.href) { - this.href=this.href+\'&page_y=\'+page_y; + var hrefarray = this.href.split("#", 2); + this.href=hrefarray[0]+\'&page_y=\'+page_y; console.log("We click on tag with .reposition class. this.ref is now "+this.href); } else