Fixed bug in FixHost method.
This commit is contained in:
parent
28194105d1
commit
9befcf3c13
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ namespace ScrewTurn.Wiki {
|
||||||
string newHost = Settings.GetMainUrl().Host;
|
string newHost = Settings.GetMainUrl().Host;
|
||||||
|
|
||||||
int hostIndex = originalUrl.IndexOf(originalHost);
|
int hostIndex = originalUrl.IndexOf(originalHost);
|
||||||
string newUrl = originalUrl.Substring(0, hostIndex) + newHost + originalUrl.Substring(hostIndex + originalHost.Length + 1);
|
string newUrl = originalUrl.Substring(0, hostIndex) + newHost + originalUrl.Substring(hostIndex + originalHost.Length);
|
||||||
|
|
||||||
return new Uri(newUrl);
|
return new Uri(newUrl);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue