diff --git a/apps/frontend/src/components/ui/ModrinthFooter.vue b/apps/frontend/src/components/ui/ModrinthFooter.vue index 73109a3e55..2cb0d38283 100644 --- a/apps/frontend/src/components/ui/ModrinthFooter.vue +++ b/apps/frontend/src/components/ui/ModrinthFooter.vue @@ -1,5 +1,12 @@ + diff --git a/apps/frontend/src/components/ui/banner/PreviewBanner.vue b/apps/frontend/src/components/ui/banner/PreviewBanner.vue index 141f65649a..7fc253caf5 100644 --- a/apps/frontend/src/components/ui/banner/PreviewBanner.vue +++ b/apps/frontend/src/components/ui/banner/PreviewBanner.vue @@ -13,6 +13,7 @@ import { const { formatMessage } = useVIntl() const flags = useFeatureFlags() const config = useRuntimeConfig() +const route = useRoute() const messages = defineMessages({ title: { @@ -21,7 +22,7 @@ const messages = defineMessages({ }, description: { id: 'layout.banner.preview.description', - defaultMessage: `If you meant to access the official Modrinth website, visit https://modrinth.com. This preview deploy is used by Modrinth staff for testing purposes. It was built using {owner}/{branch} @ {commit}.`, + defaultMessage: `If you meant to access the official Modrinth website, visit {url}. This preview deploy is used by Modrinth staff for testing purposes. It was built using {owner}/{branch} @ {commit}.`, }, }) @@ -29,10 +30,12 @@ function hidePreviewBanner() { flags.value.hidePreviewBanner = true saveFeatureFlags() } + +const url = computed(() => `https://modrinth.com${route.fullPath}`)