You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a URL bundle for a single type with no dynamic field in the Pattern.
Why is it needed?
Currently adding a URL bundle requires there to be a field in the Pattern. For single types this isn't really necessary because there is no dynamic part to the path. The suggested way of adding non-dynamic urls is via the Custom URLs tab. However, because custom urls have no language setting they don't generate a Translation Set in the sitemap xml.
I'd like to be able to generate sitemap entries with translation sets for urls related to Single types.
Suggested solution(s)
I see a couple of options:
Allow adding a URL bundle which doesn't have a dynamic pattern (probably limited to Single Types)
Make the language option available for Custom URLs
My workaround for now is adding a slug field to the single type and using this in the URL bundle, but this adds the overhead of another place where the slug needs to be kept in sync with the front-end.
Related issue(s)/PR(s)
#98 (I believe the reporter of this issue was looking for the same functionality)
p.s. Thanks for your great work on this handy plugin!
The text was updated successfully, but these errors were encountered:
Thanks for your clear explanation of the issue. I can see how this can be beneficial for you and probably others.
Both options proposed by you seem like good solutions. Though being able to add translation sets to custom URLs would be the best in my opinion. That way any custom URL (also the ones not tied to Strapi's data) can be translated which is just a nice feature in general.
boazpoolman
changed the title
Allow URL Bundles for single types with no field to handle translation
Allow URL translation sets for custom URLs
Aug 29, 2023
Feature request
Summary
Adding a URL bundle for a single type with no dynamic field in the Pattern.
Why is it needed?
Currently adding a URL bundle requires there to be a field in the Pattern. For single types this isn't really necessary because there is no dynamic part to the path. The suggested way of adding non-dynamic urls is via the Custom URLs tab. However, because custom urls have no language setting they don't generate a Translation Set in the sitemap xml.
I'd like to be able to generate sitemap entries with translation sets for urls related to Single types.
Suggested solution(s)
I see a couple of options:
My workaround for now is adding a slug field to the single type and using this in the URL bundle, but this adds the overhead of another place where the slug needs to be kept in sync with the front-end.
Related issue(s)/PR(s)
#98 (I believe the reporter of this issue was looking for the same functionality)
p.s. Thanks for your great work on this handy plugin!
The text was updated successfully, but these errors were encountered: