From 7c6c315eadcaadd00d338a7b09e84e1b733dfba2 Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Sun, 7 Aug 2022 16:27:25 +0400 Subject: [PATCH] /viewer# displays a blank page --- static/viewer.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/viewer.html b/static/viewer.html index e6f1d81b6..4e7228941 100644 --- a/static/viewer.html +++ b/static/viewer.html @@ -27,10 +27,18 @@ // iframe url: the URL to be loaded in the viewer iframe. function userUrl2IframeUrl(url) { + if ( url == '' ) { + return '/skin/blank.html'; + } + return `/content/${url}`; } function iframeUrl2UserUrl(url) { + if ( url == '/skin/blank.html' ) { + return ''; + } + return url.split('/').slice(2).join('/'); }