[BUGFIX beta] fix stripping trailing slashes for * routes

Fixes #3234