Skip to content
New issue

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

Serve static content of web application to all tenants #6505

Closed
ns8482e opened this issue Jun 25, 2020 · 2 comments · Fixed by #10118
Closed

Serve static content of web application to all tenants #6505

ns8482e opened this issue Jun 25, 2020 · 2 comments · Fixed by #10118

Comments

@ns8482e
Copy link
Contributor

ns8482e commented Jun 25, 2020

When static contents are added to web application wwwroot which are not embedded in assembly - i.e. static content added by Blazor web assembly or static css, javascript or images etc, app.UseStaticFiles() only serves content for Default tenant.

In multi-tenant scenario, If there is 'wwwroot/appfile1.html' and have Default, tenant1, tenant2 then it should serve appfile1.html to all tenants relative to tenant prefix.

i.e. for default tenant appfile1.html should be served with url /appfile1.html and for tenant1and tenant2 served with url /tenant1/appfile1.html and /tenant2/appfile1.html.

Ref issue # #6474 (comment)

/cc @jtkech

@remesq
Copy link

remesq commented Jun 25, 2020

@ns8482e
Copy link
Contributor Author

ns8482e commented Jun 25, 2020

@remesq Yes, currently if you have static file appfile1.html in wwwroot of MVC application and you have multitenancy configured, you can only request that static file from Default tenant as /appfile1.html.

For all other tenants it returns 404 . i.e. /tenant1/appfile1.html returns 404.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants