Difference between revisions of "Template:RUM-UPRM"

Line 10,474: Line 10,474:
 
                 $('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function () {
 
                 $('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function () {
 
                     if (
 
                     if (
                         location.pathname.replace(/^\//, "") ==
+
                         location.pathname.replace(/^\//, "") == this.pathname.replace(/^\//, "") && location.hostname == this.hostname
                            this.pathname.replace(/^\//, "") &&
+
                        location.hostname == this.hostname
+
 
                     ) {
 
                     ) {
 
                         var target = $(this.hash);
 
                         var target = $(this.hash);

Revision as of 21:36, 27 October 2020