Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
05104d5a
Commit
05104d5a
authored
Oct 27, 2017
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs] make monitoring app still compatible with older instances monitor-setup URL
parent
dd87a961
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_js.js
...lateItem/web_page_module/gadget_officejs_bootloader_js.js
+15
-7
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_js.js
View file @
05104d5a
...
@@ -88,13 +88,21 @@ var repair = false;
...
@@ -88,13 +88,21 @@ var repair = false;
}
}
state
.
redirect_url
=
new
URL
(
window
.
location
);
state
.
redirect_url
=
new
URL
(
window
.
location
);
state
.
redirect_url
.
pathname
+=
state
.
version_url
;
state
.
redirect_url
.
pathname
+=
state
.
version_url
;
if
(
state
.
redirect_url
.
hash
)
{
if
(
state
.
redirect_url
.
hash
.
startsWith
(
'
#access_token
'
))
{
// This is a bad hack to support dropbox.
// This is a bad hack to support dropbox.
if
(
state
.
redirect_url
.
hash
&&
state
.
redirect_url
.
hash
.
startsWith
(
'
#access_token
'
))
{
state
.
redirect_url
.
hash
=
state
.
redirect_url
.
hash
.
replace
(
state
.
redirect_url
.
hash
=
state
.
redirect_url
.
hash
.
replace
(
'
#access_token
'
,
'
#access_token
'
,
'
#/?page=ojs_dropbox_configurator&access_token
'
'
#/?page=ojs_dropbox_configurator&access_token
'
);
);
}
else
if
(
state
.
redirect_url
.
hash
.
startsWith
(
'
#page=settings_configurator
'
))
{
// Make monitoring app still compatible with old instances setup URLs
state
.
redirect_url
.
hash
=
state
.
redirect_url
.
hash
.
replace
(
'
#page=settings_configurator
'
,
'
#/?page=settings_configurator
'
);
}
}
}
return
gadget
.
changeState
(
state
);
return
gadget
.
changeState
(
state
);
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment