URL Alias will not update if you change the template #2047
Labels
Group 1 - Tripal Content Types | Terms | Fields
Any issue relating to Tripal Content including types, terms, and fields.
Priority - Low
Any issue/PR which is not currently a priority according to the PMC.
Tripal Version
4.x
Drupal Version
any
PostgreSQL Version
any
PHP Version
any
General Description
This does not affect the default url aliases so much, but if you create a custom url alias template with for example genus and species
/organism/[genus]_[species]
but later correct an error in spelling of the species of one entity, the url alias will not automatically be updated with the new species.
Or if you change the template, existing url aliases will not be updated.
Mainly this is hard because any tokens have been replaced. We don't have any tokens to replace any more. It is similar to having manually typed in a custom url alias. We probably never want to replace a manually entered alias, it's probably used in a publication or something.
An idea is to have a button when editing an entity "Reset to default". You can currently do this by clearing the current value and saving, then the default alias will be applied.
But we might want this functionality be applied to all aliases of a given content type, similar to when we republish content, the titles can get updated.
Steps to reproduce
.
Error messages
.
Screenshots
😎
The text was updated successfully, but these errors were encountered: