Accordion targeting certain tab item

Hi everyone,

I have an accordion with 5/6 different items which all works fine and when I click between them they load the correct sections.

I am trying to get a certain tab to open by going to the URL using the following documentation

I have set my accordion ID to ‘casetabs’ then I go to my page similar to this https://www.my-url.co.uk/test/#casetabs=2 and it doesn’t open the expected tab.

When I check my console I am receiving the following error.

Uncaught Error: Syntax error, unrecognized expression: #casetabs=2
at se.error (jquery.min.js?ver=3.6.0:2:13639)
at se.tokenize (jquery.min.js?ver=3.6.0:2:21650)
at se.select (jquery.min.js?ver=3.6.0:2:22477)
at Function.se (jquery.min.js?ver=3.6.0:2:7116)
at s.find (jquery-migrate.min.js?ver=3.3.2:2:2230)
at S.fn.init.find (jquery.min.js?ver=3.6.0:2:25047)
at S.fn.init (jquery.min.js?ver=3.6.0:2:25536)
at new s.fn.init (jquery-migrate.min.js?ver=3.3.2:2:1827)
at S (jquery.min.js?ver=3.6.0:2:1051)
at Object._initSmoothScroll (theme.js?ver=1.7.11:42:19)

Any help would be appreciated.

Thanks

1 Like

Hey,

Mentioned this on Discord, I think you want the link to be https://www.my-url.co.uk/test/#casetabs-2 instead of https://www.my-url.co.uk/test/#casetabs=2 (hyphen, not equals sign)

Hope that helps!