Anchors in Wix are Broken - Dynamic

I’m having trouble with
Anchors in dynamic pages are pegged on creation of link to specific item pages, not to ALL pages in a collection

Working in
I am so confused I do not know if I am in e.g. Wix Studio Editor, Wix Editor, Dev Mode, CMS, etc.

Site link (any dynamic item page will show the error)

What I’m trying to do
Create an anchor like I used to do, on a master dynamic DB page that all my records are loaded into, and link a text in the page mini menu that jumps down to that location on the page.

What I’ve tried so far
Everything you can possibly imagine

Extra context
If you know anything about dynamic pages and CMS and anchors you know what I am experiencing. The use of anchors has been broken for god knows how long.

I believe this is expected behaviour (having to specify the page for the anchor), although should be a simple fix with just a few lines of code.

I recently shared the solution in another topic:

Expected behavior?? That makes abs no sense. Heres the screen cap. As you can see, the dialog to create the link is asking for A PAGE aka an ITEM. I want ALL items in the db loaded into the master page to have this link, not just a specific page, so the feature is broken. Who on EARTH would want that kind of behavior on a master page into which all items are loaded? I want to have the link on the master page, like Click here to jump to Anchor 1, to exist and jump to Anchor 1 on ALL pages/items. Besides, I have no idea how to use that code.

Heres what I see right now so im ready to test the code for the text box jump to anchor 1.

ive got the code in place I think but theres no hyperlink so the use of the code doesnt create a hypelink from that text to anchor1

ok well obviously the code doesnt work so my knowledge is an issue here. When I use the dialog to create a hyperlink it still asks for a specific item which works, but when I load another item the link takes the user away from the item they are viewing to the item linked in the dialog, not to the item they are currently viewing. So any item I select in the db when that linked is clicked will go to the item specified in the dialog. I cannot select ANY item, just a specific item which is no good.

hey I’m having the same issue, I’ve had it on my site for over a year and all of a sudden now its gone, there used to be an option on that drop down (which item) that was like all pages or something like that, which meant it would use the anchor on that item page, now its only allowing you to select a single item page. think there’s been a recent update that’s messed with dynamic pages as I’m also having some issues with my headers on my dynamic pages, I’m tryna get the guy to escalate it to the development team, if you fancy going through support and trying to get it escalated too, that might help us both out

Hi, just to make sure I understand what you mean, does this mean the “Any item” option for anchors in dynamic pages is gone now?

Before, when linking to a section on a dynamic page, the editor allowed selecting Section → Dynamic Page → Any item → [section]. So the button would scroll to that section on the current item page. I used this everywhere on my site and those links still work fine.

But when I create new pages now, the “Any item” option isn’t there anymore and the editor forces me to choose a specific item from the collection.

So I’m trying to understand if this was intentionally removed or if it’s just something broken in the editor right now.

Just to update - I may have been mistaken in my original reply :sweat_smile: I was in the editor for quite some time that day, and was on auto pilot when replicating.

I’ve raised this with the team to figure out what’s up - although I don’t have an ETA yet or any further info :slight_smile:

Will loop around when I hear more!

Bumping this up. I also have the same issue. This definitely feels like a bug because it was working before for all the anchor links. But any new ones we try to add just makes no sense at all.

Wondering if you managed to hear back from the team on this, because we are doing a website structure change, and the inability to anchor on dynamic pages is going to affect the whole structure. Just wanting to see if we need to plan a different structure now.

The team reverted the change that introduced this, so you should be all set with your anchors on Dynamic Pages once again :flexed_biceps:

Thanks for flagging this!