Allowing nested URL's #2040
rjvandoesburg
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
At the moment when creating new records or urls the values are always altered using
Str::slug()
. Usually in combination with the name field.However, when working with collections I expect the urls to be nested as well e.g. the collection
t-shirts
has a child calledwell-fitted
I would like the url to bet-shirts/well-fitted
but at the moment this is transformed intot-shirts-well-fitted
or when not manually editing the urlwell-fitted
.Obviously the input from the user should be slugged in a way to create correct urls, but I would like to be able to created nested urls based on requirements.
In my current project I have two options, ignore urls table all together and create something on my or or override the UrlGenerator (which I have now done) and somehow altering
ManageUrlsRelatedRecords
so my input isn't slugged. (I will probably introduce a composer patch, else I need to extend every resource)I have searched GitHub and the docs but am unable to find any information/decisions from Lunar why urls can only be root level.
Before implementing anything the following things should be considered:
I am interested in hearing your thoughts on this issue.
Beta Was this translation helpful? Give feedback.
All reactions