diff --git a/module/VuFind/src/VuFind/Controller/MyResearchController.php b/module/VuFind/src/VuFind/Controller/MyResearchController.php index ac720f4cc3342ec8be45a9238025dbc050c61bea..b52a395ad97a0552156ce7c3387fe4b227ff00ba 100644 --- a/module/VuFind/src/VuFind/Controller/MyResearchController.php +++ b/module/VuFind/src/VuFind/Controller/MyResearchController.php @@ -138,10 +138,10 @@ class MyResearchController extends AbstractBase return $this->forwardTo('MyResearch', 'Login'); } - // Logged in? Forward user to followup action (if set) or default action - // (if no followup provided): + // Logged in? Forward user to followup action (if set and not in lightbox) + // or default action (if no followup provided): $followup = $this->followup()->retrieve(); - if (isset($followup->url)) { + if (isset($followup->url) && !$this->inLightbox()) { $url = $followup->url; unset($followup->url); return $this->redirect()->toUrl($url);