summaryrefslogtreecommitdiffstats
path: root/core/src/utils
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-11-21 14:39:10 +0100
committerJulius Härtl <jus@bitgrid.net>2022-11-22 11:57:26 +0100
commit61ce0ad293d741e298413476048cc86038bee239 (patch)
treebb752a9aaaae95deea63bf9a7b873826a3b77bcc /core/src/utils
parent5bf96eecc6b56d965f6a99fc0c47aeb0e6fdeb40 (diff)
downloadnextcloud-server-61ce0ad293d741e298413476048cc86038bee239.tar.gz
nextcloud-server-61ce0ad293d741e298413476048cc86038bee239.zip
Generate proper URL for unsupported browsers page
Signed-off-by: Julius Härtl <jus@bitgrid.net> Compile assets Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core/src/utils')
-rw-r--r--core/src/utils/RedirectUnsupportedBrowsers.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/utils/RedirectUnsupportedBrowsers.js b/core/src/utils/RedirectUnsupportedBrowsers.js
index 04382722c2d..16076a9afd3 100644
--- a/core/src/utils/RedirectUnsupportedBrowsers.js
+++ b/core/src/utils/RedirectUnsupportedBrowsers.js
@@ -19,12 +19,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+import { generateUrl } from '@nextcloud/router'
import { supportedBrowsersRegExp } from '../services/BrowsersListService.js'
import browserStorage from '../services/BrowserStorageService.js'
import logger from '../logger.js'
export const browserStorageKey = 'unsupported-browser-ignore'
-const redirectPath = '/unsupported'
+const redirectPath = generateUrl('/unsupported')
const isBrowserOverridden = browserStorage.getItem(browserStorageKey) === 'true'