Customizing the Share Link (Standardizing)

Hello,

currently I’m running a nextcloud on a Ubuntu Server 16.04 LTS in a Windows environment.
The Nextcloud is internal available via (https://)nextcloud/ and (https://)nextcloud(.XXX.de.)
Also the Nextcloud is external reachable via (https://)nextcloud(.XXX.de:444). Why Port 444 you ask?
Because 443 is already used by Microsoft Exchanges OWA, so I needed to NAT the Port from outside 444 to internal 443 to the specific IP of the Ubuntu Server.
Now my Problem:
If you access the Nextcloud via (https://)nextcloud and you want to share a Link it looks like this: “(https://)nextcloud/index.php/s/mAzPwaH”.
If you access the Nextcloud via https://nextcloud.XXX.de the Share Links look like this:
“(https://)nextcloud.XXX.de/index.php/s/mAzPwaHKwzNRY4o
And if you access from outside the LAN https://nextcloud.XXX.de:444 the Share Links look like this:
“(https://)nextcloud.XXX.de:444/index.php/s/Cw7HwGC2cY

Is there a way to standardize the first half of the Share Link?
The part of the File, like “Cw7HwGC2cY” I’ve found a Plugin for to change works verry well, but it can’t change the first part of the URL.
PS: Ignore the brackets, I was only allowed to use a maimum of 4 Links…
Thanks ahead.

Lukas