Skip to content
New issue

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

isActivePath returns False for startPage #2000

Open
andreytroeglazov opened this issue Sep 3, 2024 · 4 comments
Open

isActivePath returns False for startPage #2000

andreytroeglazov opened this issue Sep 3, 2024 · 4 comments
Labels
bug v2 Next major release

Comments

@andreytroeglazov
Copy link
Contributor

If ExampleAction is set as startPage - isActivePath ExampleAction will return True on /Example and False on /.

@mpscholten mpscholten added the bug label Sep 3, 2024
@mpscholten
Copy link
Member

Thanks for reporting 👍 This cannot be fixed without a larger refactoring of the routing system.

As a workaround I suggest isActivePath ExampleAction || isActivePath ("/" :: Text)

@andreytroeglazov
Copy link
Contributor Author

Thanks 🙂

@amitaibu
Copy link
Collaborator

amitaibu commented Sep 4, 2024

@mpscholten do you already have ideas to how a revamped routing system would look?

@mpscholten mpscholten added the v2 Next major release label Sep 4, 2024
@mpscholten
Copy link
Member

Not yet. Possibly with template haskell. It's one of the most complex systems in IHP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug v2 Next major release
Projects
None yet
Development

No branches or pull requests

3 participants