Issue Bug Closed

#96853The slug generator via ajax is not workspace aware

Imko Schumacher 02/12/22, 11:59 updated 10/04/22, 14:17

Description

The slug generator via ajax is not workspace aware.
This causes Recalculate URL segment from ... to check the wrong collision domain and collide with the live record.

Prerequisite

  • workspace
    • activate the extension
    • create a workspace

Steps to reproduce

  1. Create a page in the live workspace with the title workspace-slug
    • make sure, that the URL segment is /workspace-slug (may need to use recalculate button)
  2. Save page
  3. Switch to a workspace
  4. Edit the same page and save it (we need a WS version to be created)
  5. Press the Recalculate URL segment from page title button

Actual behavior

  • The requested URL is already in use, but ... (adds a suffix)
    workspace-slug-actual.png

Expected behavior

  • Slug stays the same since it falls under different constraints (SlugHelper is workspace aware)
    workspace-slug-expected-fixed.png

Solution

Environment

  • Tested typo3 versions
    • main (3634cd0385427dd4af97ec89e7646a7e24b81b6a)
    • 11.5.5
    • 10.4

Reviews 2