I'm not sure I understand your question, but I'll try to help!
IF you are trying to create a folder that contains links to individual sections of an index page, then yes, I recommend /index-PAGE-url#index-SECTION-url if you are on Brine. However- you don't need to custom code. Just use a normal link and add it to the folder. https://www.loom.com/share/95d57cb5fd754139add451004c2432d8
If, however, you mean that you used custom code to control what happened when they clicked on the NAME of the folder- I address that the end of the video 🙂