I have seen that anchor links can not be indexed since the crawlers read www.example.com/page#someanchor
as www.example.com/page
.
It is the web browser that then interprets the anchors to jump in the appropriate section or open an accordion (my case).
I would like to know if there is currently a way to have a url with this structure indexed by search engines:
www.mysite.com/somepage?modal=foo#foo
The site contains multiples accordions, each anchor link opening each associated accordion.