Files
sqlpage--sqlpage/tests
Ophir LOJKINE 33125565d3 Check for 404 before redirecting on no-extension paths (#972)
* Check for 404 before redirecting on no-extension paths

The commit improves routing logic by checking if a path would result in
a 404

fixes https://github.com/sqlpage/SQLPage/issues/971 before adding a
trailing slash. This prevents unnecessary redirects when a custom 404
handler exists.

* Fix test function signature formatting in routing module (#973)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>

* Simplify path resolution and redirect logic

The shorter code more clearly handles finding files with .sql extensions
and decides whether to add trailing slashes based on index file
presence.

* clippy

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-07-28 17:54:23 +02:00
..
2025-05-29 22:44:22 +02:00
2025-05-25 23:22:41 +02:00
2025-05-29 22:44:22 +02:00
2025-05-25 23:22:41 +02:00
2025-07-27 00:09:39 +02:00
2025-05-25 23:22:41 +02:00
2025-05-25 23:22:41 +02:00
2025-05-25 23:22:41 +02:00
2023-11-24 23:49:53 +01:00
2025-05-26 00:05:45 +02:00