Show Current State For CMS, Folder Links

This script & method allows you to display the Webflow "current" state on your links even when you are not linking directly to that page.
For example, if a visitor is on /blog/your-post, and your "Blog" link in the nav is going to /blog, this script will make it so that the "Blog" link still has the current state applied.