Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Possible without uid in url? #4

Closed
klodeckl opened this issue Apr 5, 2022 · 2 comments
Closed

Possible without uid in url? #4

klodeckl opened this issue Apr 5, 2022 · 2 comments

Comments

@klodeckl
Copy link

klodeckl commented Apr 5, 2022

I would like an url without the uid in the url, is that possible? I’m using the mapper just for the localeMap (I have an extension with one record for both languages english and german and an own slug field for each language). So in my case the PersistedAliasMapper would be fine but PersistedAliasMapper does not have the localeMap.

@klodeckl
Copy link
Author

klodeckl commented Apr 6, 2022

I solved this now by an own Mapper extending the PersistedAliasMapper and inspiring by your code. Not optimal (in $this->modify(); did not work in function generate so I had to modify findByIdentifier) but works.

@klodeckl klodeckl closed this as completed Apr 6, 2022
@calien666
Copy link
Owner

Hey, as I think, the PersistedAliasMapper should work with the path_segment instead and localized records will have their own path slugs, I don't see any effort.
But I'm working on an extended routing extension with some other features, so if you want to share your code and possibly show the benefit, I#ll try to implement your solution, too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants