Capítulo 29 de 57
Route masking displays a different URL in the browser's address bar than the route actually being navigated to internally, by storing the real location under a __tempLocation key in browser history.state, useful for things like showing a clean URL while internally rendering a modal/detail route.
location.state.__tempLocation; when present, the router uses that stored location instead of the one parsed from the visible URL.mask option to <Link> or navigate(), alongside the normal to/params/search, fully type-checked.routeMasks on the router using createRouteMask(), centralizing mask rules rather than specifying them at each call site.unmaskOnReload: true at the router level, on a specific route mask, or on an individual navigation call to force unmasking after reload.routeMasks + createRouteMask() when a masking rule should apply consistently across the app; use the per-Link/navigate mask option for one-off cases.unmaskOnReload: true explicitly if you want a masked URL to revert to the real route path after a hard refresh, this is opt-in, not the default.mask field lives inside ToOptions, used by Link/navigate.