Skip to main content
Inspiring
January 10, 2023
Answered

Force all hyperlinks to display in parent frame

  • January 10, 2023
  • 1 reply
  • 273 views

Hello! Is there a way to force the target for all hyperlinks in a frameless output (RH2020) to display in a parent frame (or new window, etc.)?

 

All of the hyperlinks and cross-references in my projects are currently set to be displayed in frame, page default. I need to update them to be displayed in the parent frame. Is there a way I can force this so that I don't have to update the target for every link in every topic in every language?

 

I've tried adding <base target="_parent"/> to the head of my master page, but that didn't work. It also didn't work to add it directly to the head of a topic. I also tried adding the following to my css, which also didn't work:

a {
 target: _parent;
}

Any other suggestions?

This topic has been closed for replies.
Correct answer Jeff_Coatsworth

If you change one in a topic, does it work then? If so, I suspect a bulk search-and-replace would then be in order.

1 reply

Jeff_Coatsworth
Jeff_CoatsworthCorrect answer
Community Expert
January 10, 2023

If you change one in a topic, does it work then? If so, I suspect a bulk search-and-replace would then be in order.

Inspiring
January 10, 2023

Yes, changing one in a topic works. I will try a bulk replace. Thanks!