Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
0dbadd4a
Commit
0dbadd4a
authored
9 years ago
by
gnaegi
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/webapp/static/js/openolat/iframe.js
+13
-2
13 additions, 2 deletions
src/main/webapp/static/js/openolat/iframe.js
with
13 additions
and
2 deletions
src/main/webapp/static/js/openolat/iframe.js
+
13
−
2
View file @
0dbadd4a
...
@@ -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
"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment