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

Suggest adding application.UseDefaultFiles(); #7030

Closed
nealculiner opened this issue Jan 21, 2024 · 1 comment
Closed

Suggest adding application.UseDefaultFiles(); #7030

nealculiner opened this issue Jan 21, 2024 · 1 comment

Comments

@nealculiner
Copy link

People like me have a lot of web content that uses default.htm, default.html, index.html type pages which go in the wwwroot as you know. Out of the box nopCommerce (4.60.5) doesn't serve these and results in 404's. This is an easy fix, in the first line of the UseNopStaticFiles method you just need to add the line below and it solves this issue.

application.UseDefaultFiles();

@AndreiMaz
Copy link
Member

After some consideration we've decided not to implement this functionality out of the box and leave it for customization

@AndreiMaz AndreiMaz closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants