Fork me on GitHub
#reitit
<
2018-10-28
>
valerauko07:10:50

@ikitommi re #92 i tried enforcing a trailing / when compiling routes and adding one on lookup too if missing

valerauko07:10:05

i'll put up a PR (tests are failing en masse but that's to be expected)

valerauko07:10:40

if this direction is all right i'll fix all the failing tests

valerauko07:10:42

on a related note, have you considered setting up automated testing for reitit?

valerauko09:10:46

tried stripping /s instead

valerauko09:10:35

doing redirects would involve duplicating routes (with one constant redirecting to the other) though so i'm not sure how to handle that

valerauko09:10:19

or maybe a handler mounted at */ that redirects to *?

ikitommi17:10:12

commented on the pr, one way to do effectively the redirect - would have zero duplication & no runtime perf penalty for the common case (of exact match)

valerauko23:10:10

default handler it is then