Closed joelsdc closed 4 years ago
@joelsdc This is expected behavior in redirect trailing slash feature.
http://localhost:8080/test/
sending to http://localhost:8080/test
When requested with http://localhost:8080/test
sending to http://localhost:8080/test/
However, as described above it shouldn't do loop. Looping seems bug, need investigation and fix.
@joelsdc I hope you're doing well. I'm trying to wrap up the v0.13.0 release. Did fixes and enhancements. Then I will be moving on to aah revamp on v0.14.0
Can you please validate this issue against the branch wrapping-v0.13.0
and let me know?
What version of aah are you using (
aah --version
)?v0.12.3
Does this issue reproduce with the latest release?
Yes.
What operating system are you using (such as macOS, Linux and Windows)?
macOS (haven't verified on other systems)
What did you do?
Example routes.conf:
redirect_trailing_slash
must be set totrue
..../test
What did you expect to see?
Expected:
What did you see instead?
A redirect-loop:
And now if we do:
So http://localhost:8080/test gets redirected to http://localhost:8080/test/ and again http://localhost:8080/test/ to http://localhost:8080/test
Additional context
WORKAROUND: I'm not even sure if this is a bug or expected, but setting routes.conf
redirect_trailing_slash
tofalse
solves this.