Troubleshoot Webflow

Webflow CMS slug changed and links broke

CMS slugs/Collection URLs have been modified and so links no longer work. Add a redirect and amend manually.

Possible issues

  • After renaming, either a blog or project displays a 404 error.
  • Following a modification to a Collection’s URL, all items within it also return 404 errors.
  • External links and/or links within rich text still link to a previous URL.

Check these in order

Investigate in this order. Usually an issue will be identified within the first couple of steps.

  1. 1

    Identify previous and current URLs

    Ensure you have the previous and new slugs (or Collection URLs).

  2. 2

    Add a redirect for an individual item

    Within Site settings, navigate to Publishing and then 301 redirects. Input the previous URL and set it to redirect to the new URL. Before you can redirect a CMS item, you must archive, remove or unpublish it. Alternatively you could save it as a draft or edit its slug.

  3. 3

    Add a redirect for an entire Collection

    Should a Collection’s URL be altered following publication a single wildcard redirect should be created. Previously, Webflow’s system for matching the old path included escaping the hyphens in the path using a % symbol. Therefore, the previous path is expressed as /old%-collection%-url/(.*) and redirected to /new-collection-url/%1. Although Webflow’s Collection article provides an example of a generic redirect which does not escape hyphens, publish and test this redirect.

  4. 4

    Review slug guidelines

    According to the Webflow page URL documentation, valid characters for a page slug include lower case Latin letters and numbers. All other special characters are removed. Upper case letters are also changed to lower case and non-Latin characters are replaced with Latin ones. URLs cannot be entered as /index. In addition, URLs must not be named using any of the restricted terms including /images, /css, /js, /manifest and /static-manifest.

  5. 5

    Amend manually entered URLs

    For links added in CMS using the Collection page link option, each CMS item has its own link. However, if a URL is pasted into a link or rich text box, it will not automatically amend itself. Manual editing will therefore be required.

  6. 6

    Publish and test

    Accessing the old URL should direct users to the new page. Following this, review Search Console to confirm there are no further 404 errors.

  7. 7

    Going forwards

    Unless you also add a redirect, do not alter a published slug.