Skip to content
Snippets Groups Projects
Commit 0dbadd4a authored by gnaegi's avatar gnaegi
Browse files

OO-1711 make iframe internal URL detection recognize all sites resources

parent 4a692278
No related branches found
No related tags found
No related merge requests found
...@@ -302,8 +302,19 @@ function b_changeLinkTargets() { ...@@ -302,8 +302,19 @@ function b_changeLinkTargets() {
if (anchor.getAttribute('href')) { if (anchor.getAttribute('href')) {
var target = anchor.getAttribute('target'); var target = anchor.getAttribute('target');
var href = anchor.getAttribute("href"); var href = anchor.getAttribute("href");
if (href.indexOf("/auth/repo/go?rid=") != -1 || href.indexOf("/url/RepositoryEntry/") != -1 if (href.indexOf("/auth/repo/go?rid=") != -1
|| href.indexOf("/url/BusinessGroup/") != -1 || href.indexOf("/url/CatalogEntry/") != -1) { || (href.indexOf("/url/") != -1 && (
href.indexOf("/RepositoryEntry/") != -1
|| href.indexOf("/BusinessGroup/") != -1
|| href.indexOf("Site/", href.indexOf("/url/")) != -1
|| href.indexOf("/CatalogEntry/") != -1
|| href.indexOf("/Portal/") != -1
|| href.indexOf("/CatalogAdmin/") != -1
|| href.indexOf("/CoachSite/") != -1
|| href.indexOf("/GMCMenuTree/") != -1
)
)
) {
// absolute links to repository entries have to by opened in the parent frame // absolute links to repository entries have to by opened in the parent frame
// /auth/repo/ is legacy format, /url/RepositoryEntry/ is new format // /auth/repo/ is legacy format, /url/RepositoryEntry/ is new format
anchor.target = "_parent"; anchor.target = "_parent";
......
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