The class w--current is not being added to the nav bar link to the current page in the specific scenario where I’ve used JavaScript to dynamically add parameters to the above link’s URL.
I’ve also tried giving the nav bar link its own ID and then adding the class to that ID (via Javascript), and while I generally can add classes, the specific class w--current cannot be added – it gets ignored.
I believe this is a bug because just because I’ve dynamically added parameters to the URL, that doesn’t mean the class w--current should be not added to the button.
please see this video to clarify the problem I’m describing:
You can view the two pages featured in the video here: working and not working.
I don’t think it is a bug but it might be easier to understand what you have tried if we could see your custom code and also which page of your project we should look at.
Otherwise I think (not 100% sure) w-current is not really a class nor a state but more a conditional checking script (client or server side) of the url to apply different styles (a bit like combo classes)
Because Webflow handle CMS capabilities and therefore generates pages dynamically, I reckon it is not just about adding a class to the class list but adding css properties to the desired classes.
Again my knowledges are still limited and I might be totally wrong on what you meant
I hope it can be a beginning of answer and I will be happy to help if you can provide more precise details of your setup.