Feature request
Summary
I would like to be able to add multiple aliases for a single entry.
Why is it needed?
My use case is a followed: I have vehicles in my Strapi. These vehicles are sold in multiple ways: direct buy, leasing, b2b wholesale. So I create multiple (different layout) pages from the same vehicle entry. I have a relation on the vehicle, in which sales they should exist. So let's say that is a relation called sales. I would like my url_aliases be an array for each sales: ${sales.slug}/${vehicle.slug}. This way I can let different URL's end up at this vehicle. Next step for me would be to read sales.slug in the URL to render the correct page, but that's up the me at the frontend.
Suggested solution(s)
url_alias should become a oneToMany and lots of other magic :)
I wonder if this would break the GET http://localhost:1337/api/webtools/url-alias output. It shouldn't..
Related issue(s)/PR(s)
In some way, this is related to allowing redirect URLs: #28
That would mean aliases should be able to be marked as a primary destination or a redirect.
Feature request
Summary
I would like to be able to add multiple aliases for a single entry.
Why is it needed?
My use case is a followed: I have vehicles in my Strapi. These vehicles are sold in multiple ways: direct buy, leasing, b2b wholesale. So I create multiple (different layout) pages from the same vehicle entry. I have a relation on the vehicle, in which sales they should exist. So let's say that is a relation called
sales. I would like my url_aliases be an array for each sales:${sales.slug}/${vehicle.slug}. This way I can let different URL's end up at this vehicle. Next step for me would be to readsales.slugin the URL to render the correct page, but that's up the me at the frontend.Suggested solution(s)
url_alias should become a
oneToManyand lots of other magic :)I wonder if this would break the
GET http://localhost:1337/api/webtools/url-aliasoutput. It shouldn't..Related issue(s)/PR(s)
In some way, this is related to allowing redirect URLs: #28
That would mean aliases should be able to be marked as a primary destination or a redirect.