diff --git a/js/anchor-scroll.js b/js/anchor-scroll.js
index 1ac24e1..1e1cc7f 100644
--- a/js/anchor-scroll.js
+++ b/js/anchor-scroll.js
@@ -204,12 +204,9 @@
         excludeLinks += ':not(' + drupalSettings.bs_lib.anchor_scroll.exclude_links[i] + ')';
       }
 
-      $(once('bs-lib-anchor-smooth-scroll', 'a[href^="#"]' + excludeLinks, context)).click(function (e) {
-        BSLib.processClick(e, this);
-      });
-
-      // Useful for Drupal menu links because you need to use / for them.
-      $(once('bs-lib-anchor-smooth-scroll', 'a[href^="/#"]' + excludeLinks, context)).click(function (e) {
+      // Apply to every link with a hash. Originally only for href^="#" and href^="/#" but that does not apply to links
+      // not on the frontpage, and on multilingual websites. There is a check for empty # links in processClick.
+      $('a[href*="#"]' + excludeLinks, context).once('bs-lib-anchor-smooth-scroll').click(function (e) {
         BSLib.processClick(e, this);
       });
     }
