Fixed all redirections with appropriate host (as configured).
This commit is contained in:
parent
8c35eed690
commit
191d903b2d
13 changed files with 149 additions and 124 deletions
|
@ -1019,7 +1019,7 @@ namespace ScrewTurn.Wiki {
|
|||
/// </summary>
|
||||
/// <returns>The URL.</returns>
|
||||
private static string GetCurrentRequestMainUrl() {
|
||||
string url = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Path);
|
||||
string url = HttpContext.Current.Request.Url.FixHost().GetLeftPart(UriPartial.Path);
|
||||
if(!url.EndsWith("/")) {
|
||||
int index = url.LastIndexOf("/");
|
||||
if(index != -1) url = url.Substring(0, index + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue