#route.to not matching ToOptions

4 messages · Page 1 of 1 (latest)

cunning anvil
#

I just updated from 1.0.6 to 1.29.2

Using a route.to no longer has the trailing / and doesn't match anything in my router.

The routes still work so my assumption is that ToOptions is the wrong type to use here as it expects the trailing / where route.to trims this slash.

Any ideas on how to solve this?

cunning anvil
cunning anvil
#

LinkProps appears to be the correct type, ToOptions no longer works

wet heath
#

Yes. You're kind of correct. ATM only index routes have trailing slashes, which is inconsistent with other leaves. Before this suggestion came from the branch but we are only allowing to navigate to a leaf now.