Fix route matching in folders