Nasty urls in hack 4 - Google doesn't like them

We’re getting links like

h ttps://

h ttps://

from the Finsweet Hack 4.

Is there any way to make these more SEO friendly?

ROL Webflow - Craig's Initial Project


Hey @jonathan3! You can now create and set dynamic ID’s with a plain text field of your CMS. (I used the name field but you can create your own ID’s)

Then on your hack4 filter button buttons, you are going to set the data-anchor attribute to the same field you previously used for the ID

And finally you can add this code to your </body>

      let buttons = document.querySelectorAll('.hack4-filter-button');

      // Event listener for each button
      buttons.forEach(function (button) {
        button.addEventListener('click', function (e) {
          // Prevent the default button behavior

          // Get the anchor value from a data attribute
          let url = '' + this.getAttribute('data-anchor');

          // Navigate to the URL
          window.location.href = url;

Test it out and let me know if it works! :muscle:

I’m not sure if I’m supposed to delete the original code, or not…

@jonathan3 yes, the original hack code can be removed