From c6ae1ea3bf94099a18351a1365f7ae736e220379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20K=C3=BCnzi?= Date: Tue, 21 Jan 2025 15:58:23 +0100 Subject: [PATCH] PB-1031: redirect github link to release page Github link now leads to the release notes --- src/config/staging.config.js | 2 +- src/utils/components/AppVersion.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config/staging.config.js b/src/config/staging.config.js index 085d52059..4f1132104 100644 --- a/src/config/staging.config.js +++ b/src/config/staging.config.js @@ -29,7 +29,7 @@ export const APP_VERSION = __APP_VERSION__ * @type {String} */ -export const GITHUB_REPOSITORY = 'https://github.com/geoadmin/web-mapviewer' +export const GITHUB_REPOSITORY = 'https://github.com/geoadmin/web-mapviewer/releases/tag/' /** * Display a big development banner on all but these hosts. * diff --git a/src/utils/components/AppVersion.vue b/src/utils/components/AppVersion.vue index 89ac57cd6..c4daf777e 100644 --- a/src/utils/components/AppVersion.vue +++ b/src/utils/components/AppVersion.vue @@ -11,7 +11,7 @@ const appVersion = ref(APP_VERSION) const isProd = computed(() => store.getters.isProductionSite) function openGithubLink() { - window.open(GITHUB_REPOSITORY, '_blank') + window.open(GITHUB_REPOSITORY + APP_VERSION, '_blank') } @@ -32,6 +32,7 @@ function openGithubLink() { .app-version { color: $gray-800; + word-spacing: 3px; cursor: pointer; }