-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] slug always rewritten on any change of page if it contains the path segments #98
Labels
bug
Something isn't working
Comments
dkd-kaehm
added a commit
to dkd-kaehm/sluggi
that referenced
this issue
Oct 30, 2023
EXT:sluggi always(on each pages change) rewrites the slug with path segments to the last path segment, even the slug is locked and not changed by editor. Also from `/virtual-parent-slug/my-test-page` to `/my-test-page`. This change prevents overrides on slugs at least on "locked" slugs. **Note: This is a partial fix only and not locked slugs will be still overridden.** Relates: wazum#98
dkd-kaehm
added a commit
to dkd-kaehm/sluggi
that referenced
this issue
Oct 30, 2023
EXT:sluggi always(on each pages change) rewrites the slug with path segments to the last path segment, even the slug is locked and not changed by editor. Also from `/virtual-parent-slug/my-test-page` to `/my-test-page`. This change prevents overrides on slugs at least on "locked" slugs. **Note: This is a partial fix only and not locked slugs will be still overridden.** Relates: wazum#98
dkd-kaehm
added a commit
to dkd-kaehm/sluggi
that referenced
this issue
Oct 30, 2023
EXT:sluggi always(on each pages change) rewrites the slug with path segments to the last path segment, even the slug is locked and not changed by editor. Also from `/virtual-parent-slug/my-test-page` to `/my-test-page`. This change prevents overrides on slugs at least on "locked" slugs. **Note: This is a partial fix only and not locked slugs will be still overridden.** Relates: wazum#98 Ports: wazum#99
We can confirm this problem for EXT:sluggi version: 10.1.0 @ TYPO3 10.4.40. |
Thanks for the explanation, I'll work on this in the coming days. |
@dkd-kaehm @ahlswedem can you please test with the latest versions of the matching branch (no tags yet)? I hope I fixed all problems with this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Each editors change on page record leads to slug update, if it contains some path segments from admin.
How to reproduce:
/virtual-parent-slug/...
so the slug is/virtual-parent-slug/my-test-page
Current behavior:
/my-test-page
, if not changed.Expected behavior:
Additional infos:
EXT:sluggi version: 11.1.2 @ TYPO3 11.5.32
It does not matter if the slug is locked or not, but it is really critical on locked slugs, because it breaks in our case the SEO score and back links and so on.
The source of trouble:
The value is only last path segment of real slug:
EXT:sluggi settings:
Proposal:
It is really difficult for a set of possibilities, but something like this:
$segment
inInputSlugElement::replaceValues()
, but only on JS stack and only on Non-"banned slug part"Current solution in our project:
Following patch at least helps against losing the locked slug:
The text was updated successfully, but these errors were encountered: