japgolly.scalajs.react.extra.router
Captures the (non-empty) remaining portion of the URL path.
Captures the (potentially-empty) remaining portion of the URL path.
A rule that uses a replace-state redirect to remove leading slashes from route URLs.
Removes the query portion of the URL.
Removes the query portion of the URL.
e.g. a/b?c=1
to a/b
A rule that uses a replace-state redirect to remove trailing slashes from route URLs.
Note: Requires that Page#equals()
be sensible.
Matches a string.
Matches a string.
Best to use a whitelist of characters, eg. "[a-zA-Z0-9]+". Do not capture groups; use "[a-z]+" instead of "([a-z]+)". If you need to group, use non-capturing groups like "(?:bye|hello)" instead of "(bye|hello)".
A rule that uses a replace-state redirect to remove leading and trailing slashes from route URLs.
DSL for creating RouterConfig.
Instead creating an instance of this yourself, use RouterConfigDsl.apply.