Make path alias support content moderation in draft and other states

Created on 5 August 2022, almost 2 years ago
Updated 27 November 2023, 7 months ago

Problem/Motivation

In #2856363: Path alias changes for draft revisions immediately leak into live site β†’ , it was made impossible to submit an alias change for other than the published state as it leaked immediately to the production. However by now the #2336597: Convert path aliases to full featured entities β†’ and #3007669: Add publishing status to path aliases β†’ were implemented so as we have revisioning, we can revert the first patch and make it also work with content moderation correctly, as some sites require to have the capability to set custom aliases without an intervention of an administrator to do it in the URL alias admin interface. (note if you have published to publish you can also do this, but some sites require validations from another party which does not allow such transition.)

Steps to reproduce

1. Has content with content moderation enabled without having publish -> publish transition.
2. Create content with a path alias save to draft and publish it.
3. Edit the same content and try to change the alias and try to save it as draft. (it will fail right now)

Proposed resolution

Allow making the alias into the draft (or other non-published states).

Remaining tasks

- Revert the original patch: #2856363: Path alias changes for draft revisions immediately leak into live site β†’
- Find out why still does not work and fix it.
- Test

User interface changes

n/a

API changes

n/a

Data model changes

n/a

Release notes snippet

n/a

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
PathΒ  β†’

Last updated 6 days ago

  • Maintained by
  • πŸ‡¬πŸ‡§United Kingdom @catch
Created by

πŸ‡§πŸ‡ͺBelgium golddragon007

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States jasonawant New Orleans, USA

    I replaced links with issues in summary and added related issues. I imagine this is a feature request instead of a bug

Production build 0.69.0 2024