Skip to content
Snippets Groups Projects
Commit 55be3bf6 authored by srosse's avatar srosse
Browse files

OO-197: update the test to prepare internal link in iframe.js

parent 7c4dc403
No related branches found
No related tags found
No related merge requests found
......@@ -279,9 +279,10 @@ function b_changeLinkTargets() {
var anchor = anchors[i];
if (anchor.getAttribute('href')) {
var target = anchor.getAttribute('target');
if (anchor.getAttribute("href").indexOf("/auth/repo/go?rid=") != -1) {
var href = anchor.getAttribute("href");
if (href.indexOf("/auth/repo/go?rid=") != -1 || href.indexOf("/url/RepositoryEntry/") != -1 || href.indexOf("/url/BusinessGroup/") != -1) {
// absolute links to repository entries have to by opened in the parent frame
// /auth/repo/ is legacy format, /url/RepositoryEntry/ is new format
anchor.target = "_parent";
} else if (target != 'undefined' && (target == '_top' || target == '_parent')) {
// fix broken legacy links that try to open content in top window
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment