Try our conversational search powered by Generative AI!

Unable to redirect to a url with Login in path name on multisite

Vote:
 

Hi,


I am unable to redirect to a url with Login in path name on a multisite set up.


EPiServer version 7.5.394.2


If I move or add the * hostname to Site x the page loads correctly.


If the * hostname is missing but it has all the other alias hostname values that are used it errors with:


------------------------

Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   EPiServer.Web.PageExtensions.SiteRedirect.SiteRedirect_PreLoad(Object sender, EventArgs e) +295
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnPreLoad(EventArgs e) +121
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +699
   



------------------------


I have these additonal rgistered routes

------------------------

protected override void RegisterRoutes(System.Web.Routing.RouteCollection routes)
{
    base.RegisterRoutes(routes);
    routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" });
    routes.Insert(0, ServiceLocator.Current.GetInstance());
}

------------------------

Ideally I want hostname * on Site 1 and Site X path working as normal.

Path trying to acess is [site x]/login        

#133358
Sep 02, 2015 15:50
Vote:
 

Looks like it may be resolved in 7.13.3 - so will give this a try.

http://world.episerver.com/Support/Bug-List/bug/116903/

#133361
Sep 02, 2015 17:08
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.