Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upStatic middleware changed behaviour? #1400
Open
Comments
|
I'm running into a similar issue, might be related, started happening after I moved to v4 from v3. This routes used to work: e.Static("/", "web/public")
e.Static("/dashboard", "web/public")
e.Static("/sessionexpired", "web/public")Now only the first route works, the other ones do not. They do work however if I add a trailing slash on the browser. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
I updated echo in one of my projects. After that my static configuration didn't work without changes. Before it automatically resolved to an existing index.html. After that I had to point to that file.
My code was something like that:
In docs is an index.html which was delivered when no path was given.
Now I need to use
docsGroup.File("/", "docs/index.html")to make it work again.The change was somewhere between 4.1.3 and 4.1.5.
Checklist