We have a situation where we need to prevent the same URL from being generated within the same language.
Current situation (all for en):
- Create nodeA with a URL alias of "page/node-title"
- Create nodeB with a URL alias of "page/node-title"
- Create nodeC with a URL alias of "page/node-title"
Results of current situation
- nodeA generates "page/node-title"
- nodeB generates "page/node-title-0"
- nodeC generates "page/node-title-1"
Expected results:
- get created as expected
- user is prompted to modify the url since for the en language, that alias already exists
- user is prompted to modify the url since for the en language, that alias already exists
That is not the expected results however. When nodeB and nodeC are generated, then the user should be prompted to let them know that the URL alias is a duplicate and thus it must be changed so it is unique. We have reviewed a lot of the documents for URL generation in Drupal but cannot find the correct configuration to prevent duplicate node alias from being generated.