Skip to content

API reference > @kontsedal/olas-router > RoutePathnameScope

RoutePathnameScope variable ​

Current pathname (URL path portion, no search/hash). E.g. '/users/42'. Useful for analytics, breadcrumbs, or coarse-grained route-change effects.

Signature:

typescript
RoutePathnameScope: Scope<ReadSignal<string>>

Released under the MIT License.