Streaming live at 10am (PST)

Current state in navigation not recognized when query string follows URL


#1

When sending traffic to a WebFlow site using a URL with a query string, for example Google Analytics Tracking URL, the CURRENT state of navigation is not recognized. For example, lets say a navigation link for CURRENT state has a background color change. This would work as expected for a url (example) http://www.someurl.com, but the CURRENT (page) state is not recognized for the url http://www.someurl.com/?anyquerystringhere


#2

Hello @bhinson smile

Thanks for catching that. Let me talk to my team to see if we can address this quickly.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.


#4

#5

Hello @bhinson,

Sorry for the delayed response. There currently isn't a way for querystrings to work with the "current" class. But, there may be a workaround using jQuery and custom code.

The code could recognize the name of the page, then apply a the "w--current" class to the appropriate nav link.

Would you like me to go further with the code?

I'll be standing by for your response! smile

Cheers,
Nelson


#6

Would love to see your ideas Nelson


#7