I know that Confluence supports 2 types of page URLs. the one includes the the page name, and the other includes the page ID instead. there is information regarding this in this Location .
Confluence decides which URL format to use based on whether the page name has only alphanumeric characters or also special characters. This means, that it is possible for Confluence to generate page URLs with page ID instead of page name, but currently confluence's default behavior is to generate the URL with the page name.
Many users require the URLs to be based on page id, in order to allow duplicate page names in the same space. This is a very common requirement when using Confluence for extensive technical documentation.
I would ask why is there no configuration at the space level, for the user to specify whether this space will attempt to create URLs exclusively based on page id or on attempt to use page name. Such a configuration can solve the problem that many users have with the unique page names. Users that know their space will have duplicate page names, will configure the space to only create page URLs with page ID. Users that want unique page names in their space, will configure the space to create URLs with page name.