mirror of
https://github.com/bitwarden/mobile
synced 2025-12-19 17:53:47 +00:00
base domain proerpty for domain name
This commit is contained in:
@@ -81,14 +81,16 @@ namespace Bit.App.Models.Page
|
||||
|
||||
try
|
||||
{
|
||||
var host = new Uri(Uri).Host;
|
||||
|
||||
DomainName domain;
|
||||
if(DomainName.TryParse(Uri, out domain))
|
||||
if(DomainName.TryParse(host, out domain))
|
||||
{
|
||||
_uriHost = domain.Domain;
|
||||
_uriHost = domain.BaseDomain;
|
||||
}
|
||||
else
|
||||
{
|
||||
_uriHost = new Uri(Uri).Host;
|
||||
_uriHost = host;
|
||||
}
|
||||
|
||||
return _uriHost;
|
||||
|
||||
Reference in New Issue
Block a user