Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL Alias will not update if you change the template #2047

Open
dsenalik opened this issue Dec 2, 2024 · 0 comments
Open

URL Alias will not update if you change the template #2047

dsenalik opened this issue Dec 2, 2024 · 0 comments
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.

Comments

@dsenalik
Copy link
Contributor

dsenalik commented Dec 2, 2024

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

😎

@dsenalik dsenalik added 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. labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant