Endpoints 404 when adding a slash
Endpoints 404, if you add a / at the end of the URL
Expected behavior
When calling an endpoint (in my case /trackservice) it shouldn't matter if the URL ends with a / or not.
So /trackservice and /trackservice/ should work the same.
Actual behavior
When calling /trackservice/ engine-api returns a 404-error:
{
"detail": "The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}Calling /trackservice works as expected.
To circumvent this in the reverse-proxy of dashboard, I've had to add two locations, as seen in this commit: https://gitlab.servus.at/aura/dashboard/-/commit/dabb7599183ebd23ad3ae9f74268b263b632f18f
The second location (for current) wouldn't be necessary without this issue.