diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2023-04-26 15:43:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 15:43:35 +0200 |
commit | defbd23cbf1076ffad32e0ad3de4f778a0ebc781 (patch) | |
tree | ee95550149c9aba686f9515185c05c44a5541d64 /core/src | |
parent | 4c34be3d50df5675b0900299c62720dada258773 (diff) | |
parent | e025cf067f63b69c0613106a6a1aba7c4f963641 (diff) | |
download | nextcloud-server-defbd23cbf1076ffad32e0ad3de4f778a0ebc781.tar.gz nextcloud-server-defbd23cbf1076ffad32e0ad3de4f778a0ebc781.zip |
Merge pull request #37206 from nextcloud/fix-skip-recommended-apps-wrong-url
fix: wrong redirect when skipping recommended apps
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/components/setup/RecommendedApps.vue | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/core/src/components/setup/RecommendedApps.vue b/core/src/components/setup/RecommendedApps.vue index 984a6800475..472c011c762 100644 --- a/core/src/components/setup/RecommendedApps.vue +++ b/core/src/components/setup/RecommendedApps.vue @@ -59,8 +59,7 @@ <NcButton v-if="showInstallButton" type="tertiary" role="link" - href="defaultPageUrl" - @click="goTo(defaultPageUrl)"> + :href="defaultPageUrl"> {{ t('core', 'Skip') }} </NcButton> @@ -115,7 +114,6 @@ const recommended = { }, } const recommendedIds = Object.keys(recommended) -const defaultPageUrl = loadState('core', 'defaultPageUrl') export default { name: 'RecommendedApps', @@ -129,7 +127,7 @@ export default { loadingApps: true, loadingAppsError: false, apps: [], - defaultPageUrl, + defaultPageUrl: loadState('core', 'defaultPageUrl') } }, computed: { @@ -180,7 +178,7 @@ export default { .then(() => { logger.info('all recommended apps installed, redirecting …') - window.location = defaultPageUrl + window.location = this.defaultPageUrl }) .catch(error => logger.error('could not install recommended apps', { error })) }, @@ -210,9 +208,6 @@ export default { } return !!recommended[appId].hidden }, - goTo(href) { - window.location.href = href - }, }, } </script> |