Webflow sync, pageviews & more.
NEW

Why is the page URL doubling up and causing a 404 error in Webflow?

TL;DR

1. Issue: Page URL Doubling and 404 Error

A doubling URL (e.g., example.com/page/page) in Webflow often causes a 404 error because Webflow does not recognize the incorrect structure. This usually happens due to misconfigured links, redirects, or CMS collection settings.

  • Go to Webflow Designer and check navigation links, buttons, and text links.
  • Ensure no manual links accidentally repeat the page slug (e.g., /page/page).
  • If using Link Blocks, verify that the href is correctly set.

3. Review CMS Collection Slugs

  • Go to CMS Collections in the Webflow Editor.
  • Make sure item slugs are correctly formatted (e.g., page-name, not page/page-name).
  • If CMS template pages are affected, check that dynamic links are pulling the correct slug.

4. Check Project Redirects

  • Go to Site Settings > Publishing > 301 Redirects in Webflow.
  • Look for any misconfigured redirects that could be forcing URLs to duplicate.
  • If found, correct them by making sure the structure follows /old-path/new-path, not adding extra paths.

5. Inspect Custom Code

  • Go to Site Settings > Custom Code and check the <head> and <body> sections.
  • Look for scripts modifying URLs dynamically, which could be causing the duplication.

6. Clear Browser Cache and Republish

  • Republish the Webflow site after making changes to ensure updates take effect.
  • Clear your browser cache or test in incognito mode to rule out caching issues.

Summary

URL doubling usually happens due to incorrect internal links, CMS slug issues, faulty redirects, or custom code errors. Check and correct these settings, then republish your Webflow site to fix the issue.

Rate this answer

Other Webflow Questions