Memberstack
Pricing
API
Login
Build for free
Memberstack
Pricing
API
Login
Build for free
Memberstack
Pricing
API
Login
Build for free
Blog/How to Remove the Section Path (#section) from your URL after Navigation (Webflow)

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.

Ovidiu·Contributor
|
December 16, 2024·2 min read

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:

__wf_reserved_inherit

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.

Making it work

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.

Conclusion

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

If you want to use our demo project to get you started, just click the button below to add it to your Webflow site.

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

Take me to Cloneable!

Written by

Ovidiu

Contributor

Contents

  • Memberscripts needed:
  • Tutorial:
  • Cloneable:
  • Why/Use Cases –
  • Removing section paths from URLs after navigation‍
  • Making it work
  • Conclusion
  • Take me to Cloneable!

Share

Explore Memberstack

  • All Features
  • Customer Showcase
  • Templates
  • Find Experts
  • Pricing
  • Help Center

Product

  • Full Feature List
  • User Accounts
  • Gated Content
  • Secure Payments
  • API & Integrations
  • Data Tables
  • Memberstack & Webflow
  • Memberstack & Claude Code
  • Memberstack & WordPress
  • Create a new account
  • 2.0 Log in
  • 1.0 Log in
  • Pricing

Learn about Memberstack

  • Showcase
  • Testimonials
  • Why Memberstack
  • Memberstack vs Outseta
  • Memberstack vs Memberspace
  • Memberstack vs Webflow Memberships

Company

  • About
  • Careers
  • Changelog
  • Partnerships(email)
  • Contact Us(email)
  • X
  • LinkedIn
  • "Do Not Sell My Data" Promise

Resources

  • Vibe Coding
  • Templates
  • Components
  • MemberScripts
  • Data Attributes
  • Find Experts
  • Hiring Guide
  • Webflow Slack Community
  • WordPress Slack Community
  • Support Forum
  • Help Center
  • Blog
  • llms.txt (for AI)
  • llms-full.txt (for AI)
AICPA
SOC

SOC 2 TYPE 1

CERTIFIED

GDPR

COMPLIANT

CCPA

COMPLIANT

Privacy PolicyTerms of ServiceCookie PolicySecurity Policy

© Memberstack Inc. 2018 - 2025. All rights reserved.

Memberstack - The no-code membership platform for any website | Product Hunt