Actions
Bug #96853
closedThe slug generator via ajax is not workspace aware
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
Start date:
2022-02-12
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
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¶
- 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)
- make sure, that the URL segment is
- Save page
- Switch to a workspace
- Edit the same page and save it (we need a WS version to be created)
- Press the
Recalculate URL segment from page title
button
Actual behavior¶
The requested URL is already in use, but ...
(adds a suffix)
Expected behavior¶
- Slug stays the same since it falls under different constraints (SlugHelper is workspace aware)
Solution¶
- Pass workspaceId to the SlugHelper constructor
Environment¶
- Tested typo3 versions
- main (3634cd0385427dd4af97ec89e7646a7e24b81b6a)
- 11.5.5
- 10.4
Files
Actions