backoffice: don't include custom view part in inspect URLs (#43351)

This commit is contained in:
Frédéric Péters 2020-05-26 20:48:25 +02:00
parent 1ea7fc36dd
commit cc6e87c793
1 changed files with 2 additions and 1 deletions

View File

@ -2695,7 +2695,8 @@ class FormBackOfficeStatusPage(FormStatusPage):
(get_publisher().get_backoffice_root().is_accessible('forms') or
get_publisher().get_backoffice_root().is_accessible('workflows'))):
r += htmltext('<div class="extra-context">')
r += htmltext('<p><a href="inspect">%s</a></p>') % _('Data Inspector')
r += htmltext('<p><a href="%sinspect">' % formdata.get_url(backoffice=True))
r += htmltext('%s</a></p>') % _('Data Inspector')
r += htmltext('</div>')
return r.getvalue()