Skip to content

Add :exclude option to prevent links from being active#76

Open
espen wants to merge 1 commit intocomfy:masterfrom
espen:exclude
Open

Add :exclude option to prevent links from being active#76
espen wants to merge 1 commit intocomfy:masterfrom
espen:exclude

Conversation

@espen
Copy link

@espen espen commented Feb 4, 2026

Allow excluding specific controller/action combinations (or other conditions) from marking a link as active. This is useful when a link should be active for most URLs but inactive for specific pages.

The :exclude option accepts the same formats as :active (Boolean, Symbol, Regex, Array, Hash). If both :active and :exclude conditions match, the link will not be marked as active.

Fixes #24

(Vibe coded)

Allow excluding specific controller/action combinations (or other
conditions) from marking a link as active. This is useful when a link
should be active for most URLs but inactive for specific pages.

The :exclude option accepts the same formats as :active (Boolean,
Symbol, Regex, Array, Hash). If both :active and :exclude conditions
match, the link will not be marked as active.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Exclude controller/action

1 participant