From 1c0a0b3f38ee12439fa8d0159a38b152a1eea3e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come.bernigaud@opensides.be>
Date: Tue, 29 Mar 2016 10:02:05 +0200
Subject: [PATCH] Fixes #4640 Object links to other branches were not working

---
 include/class_management.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/class_management.inc b/include/class_management.inc
index 05921a809..f77657cf8 100644
--- a/include/class_management.inc
+++ b/include/class_management.inc
@@ -145,6 +145,7 @@ class management
    */
   function execute()
   {
+    global $config;
     // Ensure that html posts and gets are kept even if we see a 'Entry islocked' dialog.
     $vars = array('/^act$/','/^listing/','/^PID$/','/^FILTER_PID$/');
     session::set('LOCK_VARS_TO_USE', $vars);
@@ -167,6 +168,7 @@ class management
 
     // Pre-render list to init things if a dn is gonna be opened on first load
     if (isset($_REQUEST['dn'])) {
+      $this->headpage->setBase($config->current['BASE']);
       $this->headpage->filter->setCurrentScope('sub');
       $this->renderList();
     }
-- 
GitLab