Helper that gets the normal realm name from the realm export format.
It reverses the format generated by getRealmsForExport.
e.g. if the realm is 'root-first-second', then it will return '/first/second'.
Parameters
realm: string
realm in export format
Returns string
getRealmsForExport:function
getRealmsForExport(): Promise<string[]>
Gets the list of realms to be used for exports in special format.
e.g. if the realm is normally '/first/second', then it will return 'root-first-second'.
Get host URL without path and query params