Skip to content

Keep track of what branch was expanded #98

@lapwil

Description

@lapwil

Hello,

I didn't find an issue like mine and couldn't find help in the repo so I'm asking here.

I need to track what part of the tree was expanded, so that as the user goes back and forth on the index, the tree can keep the same state.

i.g

  • user expands branch A
  • user goes to the show page of branch A, item 2
  • user goes back to index and branch A is already expanded

I don't recall seeing a method that allows us to do it right now unless i'm missing something ?

My first idea would be to do it with JS and use session tokens to manipulate css classes maybe, but maybe there is something better

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions