Skip to content

[Core] No difference between the URL alias of the draft vs published document #278

@boazpoolman

Description

@boazpoolman

Bug report

Describe the bug

The URL alias of a document is shared across it's published & draft variants. This introduces a problem when you're working on a draft that introduces a URL change. That change will be directly applied to the published variant also.

Steps to reproduce the behavior

  1. Setup your Strapi project with at least 1 content type (e.g. Article)
  2. Install Webtools
  3. Enable Webtools for the Article content type
  4. Create a pattern like /[title] for the Article content type
  5. Create and Article with title "Test page" and publish it. This will get an URL /test-page
  6. Create a new draft (without publishing) for that Article and change the title to "Test page change"
  7. This will cause the URL of the published variant to change to /test-page-change

Expected behavior

I would expect the URL alias to be tied to a specific version of the document. So each draft, or each published version will have it's own URL alias. That allows you to work on a draft, including a URL change, without it being applied to the published version directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions