Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
3005eb49
Commit
3005eb49
authored
Jul 15, 2021
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web: base url does't always start with root url
parent
0fb3836d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_convertHtmlToSingleFile.py
...tem/portal_skins/erp5_web/Base_convertHtmlToSingleFile.py
+4
-2
No files found.
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_convertHtmlToSingleFile.py
View file @
3005eb49
...
...
@@ -252,8 +252,10 @@ else:
root_url
=
base_url_root_object
.
absolute_url
()
base_url
=
base_url_object
.
absolute_url
()
assert
base_url_object
.
getRelativeUrl
().
startswith
(
base_url_root_object
.
getRelativeUrl
())
base_path
=
base_url_object
.
getRelativeUrl
()[
len
(
base_url_root_object
.
getRelativeUrl
()):]
if
base_url_object
.
getRelativeUrl
().
startswith
(
base_url_root_object
.
getRelativeUrl
()):
base_path
=
base_url_object
.
getRelativeUrl
()[
len
(
base_url_root_object
.
getRelativeUrl
()):]
else
:
base_path
=
base_url_object
.
getRelativeUrl
()
if
not
base_path
.
startswith
(
"/"
):
base_path
=
"/"
+
base_path
...
...
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