We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
it would be nice to be able to run the whole application under a base path.
E.g.: localhost:5000/app
I've tried:
var appPath = Environment.GetEnvironmentVariable("BASE_PATH"); if (!string.IsNullOrEmpty(appPath)) { app.Use(async (context, next) => { context.Request.PathBase = new PathString(appPath); await next(); }); }
And
var basePath = Environment.GetEnvironmentVariable("BASE_PATH"); if (!string.IsNullOrEmpty(basePath)) { app.UsePathBase(basePath); }
Within Program.cs. But both attemps unfortuntely were unsuccessful
UsePathBase however worked for the login-screen and started trying to redirect to non-UsePathBase patterns afterwards.
The text was updated successfully, but these errors were encountered:
BasePath not allowed thanks to the BASEPATH environment variable
e288b52
Fork me on Github was broken Closes #112 Signed-off-by: Sebastián Gómez <[email protected]>
sebagomez
Successfully merging a pull request may close this issue.
Hello,
it would be nice to be able to run the whole application under a base path.
E.g.: localhost:5000/app
I've tried:
And
Within Program.cs.
But both attemps unfortuntely were unsuccessful
UsePathBase however worked for the login-screen and started trying to redirect to non-UsePathBase patterns afterwards.
The text was updated successfully, but these errors were encountered: