rasmusjp/umbraco-multi-url-picker

Link titles should use the target node name by default

Opened this issue · 0 comments

Given Content or Media named "Maiden Name"
Given I have picked "Maiden Name" in an RJP picker (using Link to file if Media)
Given I have not specified a custom page title.
When I rename "Maiden Name" to "Married Name"
Then existing links do not update to "Married Name"

This could be considered a bug.

If we change the scenario slightly and say:
Given we specified the page title as "Mum"
Then keeping "Mum" is a feature (no pun intended) and I would 'not' consider this a bug.

Ideally both these scenarios could be catered to, and here's how I think it could be done.
By default picking Content or Media does not fill in the Page Title field, but leaves it blank...
In order not to confuse the user the placeholder text should change to the picked item's Node Name, in this case "Maiden Name" (perhaps some additional UI hints or text could be provided if this is not clear enough what is happening)
If the user then over-writes the page title with "Mum" then "Mum" is kept.

Note: this should work the same way for both Content and Media.