Skip to content

Problems when deploying the legacy app as a subsite #18

@Harl3

Description

@Harl3

Hello!
loving this package so far, i'm trying to rewrite a legacy webforms app using blazor server.
However i'm having some problems when deploying the apps.
The legacy app is deployed as a subsite, so for example: https://legacyapp.domain.com/subsite
in the appsettings.json of the blazor app i've correctly set the urls using https://legacyapp.domain.com/subsite as destinationPrefix.
In this situation the proxy doesn't seem to work, i get correctly redirected to https://legacyapp.domain.com/subsite when opening the blazor app, but after authenticating i'm not redirected back to the blazor app, whereas while debugging locally everything works as expected.
I'm guessing is has to do with the legacy app being deployed as a subsite but i'm actually not sure.
Where i get redirected for authentication the return url is https://legacyapp.domain.com/subsite/Account/Login?redirecturl=~/ which obviously cannot work... i tried manually setting the redirect url to the url of the deployed blazor app but that doesn't work too, after auth i'm redirected to the legacy app.
How should i approach this situation?
Many thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions