[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX]: PluginAutoTOC: clicking on links should update URL with hash anchor

Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <695d7e238ee65_2c18045c4547f@gitlab-sidekiq-low-urgency-cpu-bound-v2-546464f4cd-tjhpv.mail>

Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
328b659d by Grace Nshokano at 2026-01-06T21:18:41+00:00
[FIX]: PluginAutoTOC: clicking on links should update URL with hash anchor
---
* [FIX] PluginAutoTOC: clicking on links should update URL with hash anchor

See merge request tikiwiki/tiki!9269

- - - - -


1 changed file:

- lib/jquery_tiki/autoToc.js


Changes:

=====================================
lib/jquery_tiki/autoToc.js
=====================================
@@ -345,7 +345,9 @@ $(function () {
 
             $('html, body').stop().animate({
                 scrollTop: $target.offset().top
-            }, 900);
+            }, 900, function() {
+                window.location.hash = target;
+            });
         }
     });
 });



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/328b659dd919a303775ae90cf9a2968b0e393152

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/328b659dd919a303775ae90cf9a2968b0e393152
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.