We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If ExampleAction is set as startPage - isActivePath ExampleAction will return True on /Example and False on /.
ExampleAction
startPage
isActivePath ExampleAction
True
/Example
False
/
The text was updated successfully, but these errors were encountered:
Thanks for reporting 👍 This cannot be fixed without a larger refactoring of the routing system.
As a workaround I suggest isActivePath ExampleAction || isActivePath ("/" :: Text)
isActivePath ExampleAction || isActivePath ("/" :: Text)
Sorry, something went wrong.
Thanks 🙂
@mpscholten do you already have ideas to how a revamped routing system would look?
Not yet. Possibly with template haskell. It's one of the most complex systems in IHP.
No branches or pull requests
If
ExampleAction
is set asstartPage
-isActivePath ExampleAction
will returnTrue
on/Example
andFalse
on/
.The text was updated successfully, but these errors were encountered: