In my controller action, I have the following code:

...more code

if (...)
{
    // create a site user
    await this.CreateUserAndSignHimInAsync(UserType.SiteUser, model);

    var landingPageUrl = IdentityManager.GetLandingPageUrl(model.Email);

    return Redirect(landingPageUrl);
}

...more code

The landingPageUrl is a url that looks like so: "~/Journal/Search".

At the return Redirect line, I get an exception that says:

The relative virtual path '~Journal/Search' is not allowed here.

Related posts

Recent Viewed