Page 1 of 1

Anchor link format from menuProxy

Posted: Thu Mar 13, 2025 7:32 am
by scap
I've put a menuProxy in a template, which lists all the h2-h6 headers in the topic.

This appears to add an id to each h2-h6 header, which is the anchor.

For example, for the h2 heading 'My Heading', the menuProxy adds the id 'MyHeading' to the related h2 element.

<h2 id="MyHeading">My Heading</h2>

However, I want to enforce a different convention on the ids/anchors, namely kebab case: id="my-heading"

Is there some setting in Flare to do this? Or do I have to go a client-side JavaScript route?

Re: Anchor link format from menuProxy

Posted: Thu Mar 13, 2025 7:35 am
by scap
To clarify as I can't edit posts (request blocked!)...

The resultant URL would be: mysite.com/some-topic.html#my-heading rather than mysite.com/some-topic.html#MyHeading

Re: Anchor link format from menuProxy

Posted: Thu Mar 13, 2025 3:48 pm
by Psider
I don't think there are any settings to control how Flare auto-creates bookmarks. I think it would be a nice option to have though, so do consider submitting a feature request.