Skip to content

Conversation

mojavelinux
Copy link
Member

No description provided.

@mojavelinux mojavelinux force-pushed the activate-current-path-in-template branch from 7f90f63 to 6f208c4 Compare January 1, 2021 10:10
@mojavelinux
Copy link
Member Author

Note that this does not account for a current page matched by a URL fragment. That correction can only be handled client-side, and already is even with this change.

@mojavelinux mojavelinux merged commit 37a25ca into asciidoctor:main Jan 1, 2021
@mojavelinux mojavelinux deleted the activate-current-path-in-template branch January 1, 2021 10:44
mojavelinux added a commit that referenced this pull request Jan 1, 2021
…f JavaScript (PR #72)"

reverts commit 37a25ca

the navigation object is shared between pages, so this mutates state as pages are composed
@mojavelinux
Copy link
Member Author

It turns out the current logic doesn't work since the navigation object is shared between pages. We would need to create a parallel path object that can be consulted to determine if the current item is in the path of the item for the current page.

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

Successfully merging this pull request may close these issues.

1 participant