From 0e5d0e948ba44c33df34654f89d7bd2b8d01511f Mon Sep 17 00:00:00 2001
From: Matthias Adrowski <matthias.adrowski@sgalinski.de>
Date: Fri, 28 Jan 2022 13:02:57 +0100
Subject: [PATCH] [TASK] Dont interferre with BE Nav in V11

---
 Resources/Public/JavaScript/Backend.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Resources/Public/JavaScript/Backend.js b/Resources/Public/JavaScript/Backend.js
index 8a23a1f..37d69d2 100644
--- a/Resources/Public/JavaScript/Backend.js
+++ b/Resources/Public/JavaScript/Backend.js
@@ -39,8 +39,10 @@ define([
 				this.form.submit();
 			});
 			$('.sg-news_pageswitch').on('click', function(event) {
-				event.preventDefault();
-				SgNewsModule.goTo('web_SgNewsNews', event.target.dataset.page, event.target.dataset.path);
+				if(Viewport.NavigationContainer.PageTree !== undefined) {
+					event.preventDefault();
+					SgNewsModule.goTo('web_SgNewsNews', event.target.dataset.page, event.target.dataset.path);
+				}
 			});
 		},
 
-- 
GitLab