The URL path settings is partially disconnected from the revision state. Two cases:

  1. Set a URL alias (with or without Pathauto) on a node controlled by Content Moderation.
  2. Moderate the node to Live.
  3. Edit the node, and change the URL alias, creating a new revision with state "None".
  4. Result: The URL alias for the Live version has been changed.

I can live with the above behavior, although I think it would be more "correct" to contain the URL alias changes within the revision moderation system. What is causing me a problem is the second case:

  1. Enable a Pathauto pattern for a node type that is also controlled by Content Moderation.
  2. Create or edit a node of the above type to have a custom URL alias, i.e. uncheck "Automatic alias" and type in something different.
  3. Edit the node again without changing the moderation state, you will still see your custom URL as expected.
  4. Moderate the node to Live.
  5. Result: The URL alias for the node has been changed to the Pathauto pattern, disregarding your custom URL settings.

I see no way to override this behavior, as trying to edit the alias puts the node back in a moderated state unnecessarily. As it stands there is no way to have a "Live" version of a node with a custom alias if Pathauto is enabled for that content type. (For reference I'm using Pathauto 6.x-1.4)

Comments

eugenmayer’s picture

Thanks for taking your time writing this issue down detailed enaugh.

I will have a look at this, actually i was implemnting pathauto support but iam not sure i though about custom overrides.

dave reid’s picture

flutedrumr’s picture

Yes, this sounds like the same issue... reading the first comment in the linked issue though, is there something that can/should be changed in Content Moderation to alleviate this? Or is this all on Pathauto's end?