From 1f74da4f96de0bb9a32e5af33b80fc5c53f0463f Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 26 Mar 2024 11:10:57 +0100 Subject: [PATCH] fix(links): set default for `loadState('core', 'active-app')` Without, it threw an error in public shares, which broke loading pages with links. Signed-off-by: Jonas --- src/helpers/links.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/links.js b/src/helpers/links.js index f3991c5d454..44206226b22 100644 --- a/src/helpers/links.js +++ b/src/helpers/links.js @@ -38,7 +38,7 @@ const domHref = function(node, relativePath) { return ref } // Don't rewrite links in collectives app context - if (loadState('core', 'active-app') === 'collectives') { + if (loadState('core', 'active-app', '') === 'collectives') { return ref } // Don't rewrite links to the collectives app