From 170d5419af8acefd20bb1816927837f5a0709614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20M=C3=A4ki?= Date: Thu, 28 Dec 2023 13:40:42 +0200 Subject: [PATCH] Remove version number from links leading to Thunderstore website Newer communities have a different URL structure for showing a specific version of a package than the older communities that use subdomains. Installed mods tried to link to a specific version, but the links were broken for the new communities, which confused users. Always link to the non version specific page as a quick fix. A proper fix would require backend changes and/or an actual spec. One could sniff the base URL to determine how to link to a specific version, but this would be prone to break if the URL structure change again (e.g. once the new Thunderstore website is launched). Since the button doesn't lead to the actual installed version anymore, use "website" as the label instead of the version number. This is in line with how the non-installed mods currently link to the website. Since the version number needs to be shown somewhere, show it on the package title row instead. --- src/components/views/LocalModList.vue | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/components/views/LocalModList.vue b/src/components/views/LocalModList.vue index c48b69e8..63c8a05d 100644 --- a/src/components/views/LocalModList.vue +++ b/src/components/views/LocalModList.vue @@ -138,12 +138,15 @@ Disabled - - + + {{key.getDisplayName()}} + + + by {{key.getAuthorName()}} + + @@ -179,11 +182,11 @@ Enable Associated - - - {{key.getVersionNumber().toString()}} + Website + Update