Cross-Reference Links Changing "&" to "&"

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
LisaLiel
Propeller Head
Posts: 18
Joined: Mon Dec 02, 2024 6:32 am

Cross-Reference Links Changing "&" to "&"

Post by LisaLiel »

This topic shares a name with one from 2016:

viewtopic.php?t=27184&sid=ffff46289adff ... 82aa24adee

In 2016, this was reported to MadCap as a bug, and was reportedly fixed. However, I am finding the same bug now, in the current version of Flare, only it only happens in mini-TOCs. Is it possible that mini-TOCs were overlooked when this bug was fixed?

The name of the topic includes the & character. I can't change it to "and", because it's part of the word ATT&CK. When I build for HTML and click on this topic on the navigation sidebar, it goes correctly to the topic. But when I click in the parent topic on the mini-TOC, it changes the & in the URL to &, and the link fails.

Thanks.
AlexFox
Sr. Propeller Head
Posts: 265
Joined: Thu Oct 19, 2017 1:56 am

Re: Cross-Reference Links Changing "&" to "&"

Post by AlexFox »

This seems like it would be a tricky fix.

There's probably a function buried somewhere deep in the bundled MadCap JS that's making this change inadvertently. Any fix you did would be very hacky such as substituting a character in the page title and using jQuery to change it while keeping the page URL untouched etc.

I do have to ask why your org insisted on using a reserved web character in a product name though :?
LisaLiel
Propeller Head
Posts: 18
Joined: Mon Dec 02, 2024 6:32 am

Re: Cross-Reference Links Changing "&" to "&"

Post by LisaLiel »

You'd have to ask the people at https://attack.mitre.org/. Our product uses their stuff, and we have no choice in what we call it.

Since the only fix would seem to be a coding one for Flare, is there a way I can submit it as a bug to them? I can even give them the number of the previous bug as a reference.
AlexFox
Sr. Propeller Head
Posts: 265
Joined: Thu Oct 19, 2017 1:56 am

Re: Cross-Reference Links Changing "&" to "&"

Post by AlexFox »

There may be other ways around it, but nothing springs to mind immediately for me.

The bug report form is located here.
Post Reply