How to Remove the Section Path (#section) from your URL after Navigation (Webflow)

This post will teach you how to remove section paths (#section) from your URLs after navigation in Webflow, why these IDs appear in your URLs, and how to implement a clean solution that enhances both user experience and site professionalism.

Try Memberstack for Free
December 15, 2024
INHOUDSOPGAVE
Ovidiu

How to remove the section path (#section) from your URL after navigation (Webflow)

Memberscripts needed: 

  1. https://www.memberstack.com/scripts/remove-section-path

Tutorial:

Cloneable: 

Why/Use Cases –

-  Clean up URLs.

-  Ensure that users don’t accidentally share links that automatically scroll to specific sections.

Removing section paths from URLs after navigation

If you use anchor links to send users to certain sections within your page, you’ll notice that the section will get added to the URL. This guide will help you ensure that your URLs remain clean regardless of whether the user clicked on an anchor link.

To remove section paths from URLs on a Webflow site, we’re going to use MemberScript #136 – Remove Section Path from URL. Follow the link to get the code you’ll need to add to your page and watch a video tutorial on how to set everything up.

Het laten werken

Literally all you have to do is add the MemberScript #136 custom code to your page, before the closing body tag.

You can either add the code on just the pages where you’ve got anchor links or you can add it sitewide.

Conclusie

That’s everything, you can now go ahead and test anchor links on your live site.

Als u ons demoproject wilt gebruiken om u op weg te helpen, klikt u op de knop hieronder om het aan uw Webflow site toe te voegen.

Our demo can help you remove section paths from your Webflow site’s URLs.

Take me to Cloneable!

Voeg in enkele minuten lidmaatschappen toe aan uw Webflow-project.

Meer informatie

Meer dan 200 gratis kloonbare Webflow componenten. Aanmelden is niet nodig.

Bekijk bibliotheek

Voeg in enkele minuten lidmaatschappen toe aan uw React-project.

Aan de slag
Wat is Memberstack?

Auth & betalingen voor Webflow sites

Voeg logins, abonnementen, gated content en nog veel meer toe aan uw Webflow site - eenvoudig en volledig aanpasbaar.

Meer informatie
Bouwen

Probeer Memberstack uit en ontdek wat je kunt bouwen!

Memberstack is 100% gratis totdat u klaar bent om te lanceren - dus waar wacht u nog op? Maak je eerste app en begin vandaag nog.