Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
atdb-ldv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ASTRON SDC
atdb-ldv
Commits
36e58ed7
Commit
36e58ed7
authored
2 years ago
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
Typo in monitoring history reverse url
parent
625f7864
No related branches found
No related tags found
2 merge requests
!260
Typo in monitoring history reverse url
,
!259
Make url redirect generic
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
atdb/taskdatabase/services/algorithms.py
+2
-2
2 additions, 2 deletions
atdb/taskdatabase/services/algorithms.py
with
2 additions
and
2 deletions
atdb/taskdatabase/services/algorithms.py
+
2
−
2
View file @
36e58ed7
...
@@ -251,13 +251,13 @@ def construct_link_to_monitor_history(request, title, name, hostname):
...
@@ -251,13 +251,13 @@ def construct_link_to_monitor_history(request, title, name, hostname):
try
:
try
:
if
settings
.
DEV
==
True
:
if
settings
.
DEV
==
True
:
url
=
request
.
build_absolute_uri
(
reverse
(
'
monitor
'
))
+
'
?
'
+
query
url
=
request
.
build_absolute_uri
(
reverse
(
'
monitor
ing
'
))
+
'
?
'
+
query
else
:
else
:
# Unclear why 'build_absolute_uri' doesn't return 'https' in production.
# Unclear why 'build_absolute_uri' doesn't return 'https' in production.
# Probably because the https is handled fully outside the container by Traefik
# Probably because the https is handled fully outside the container by Traefik
# and ATDB is not aware of that.
# and ATDB is not aware of that.
url
=
"
https://
"
+
request
.
get_host
()
+
reverse
(
'
monitor
'
)
+
'
?
'
+
query
url
=
"
https://
"
+
request
.
get_host
()
+
reverse
(
'
monitor
ing
'
)
+
'
?
'
+
query
link
=
'
<a href=
"'
+
url
+
'"
target=
"
_blank
"
>
'
+
title
+
"
</a>
"
link
=
'
<a href=
"'
+
url
+
'"
target=
"
_blank
"
>
'
+
title
+
"
</a>
"
except
:
except
:
pass
pass
...
...
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