aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-06-22 18:11:03 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-06-22 18:11:25 +0300
commit4e07f9574af10943577726f795fc8fad249e90e4 (patch)
tree7d2e2b98d6a317a9b4119ad3fa0da74294cdbcec /launcher
parent9ad356d66f4c7bf1ccbbe251df800ebb1c4b67d4 (diff)
downloadPrismLauncher-4e07f9574af10943577726f795fc8fad249e90e4.tar.gz
PrismLauncher-4e07f9574af10943577726f795fc8fad249e90e4.tar.bz2
PrismLauncher-4e07f9574af10943577726f795fc8fad249e90e4.zip
Use slug for url
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher')
-rw-r--r--launcher/modplatform/helpers/ExportModsToStringTask.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/modplatform/helpers/ExportModsToStringTask.cpp b/launcher/modplatform/helpers/ExportModsToStringTask.cpp
index a105fc35..c10560c1 100644
--- a/launcher/modplatform/helpers/ExportModsToStringTask.cpp
+++ b/launcher/modplatform/helpers/ExportModsToStringTask.cpp
@@ -32,7 +32,7 @@ QString ExportModsToStringTask(QList<Mod*> mods, Formats format, OptionalData ex
if (meta != nullptr) {
url = (meta->provider == ModPlatform::ResourceProvider::FLAME ? "https://www.curseforge.com/minecraft/mc-mods/"
: "https://modrinth.com/mod/") +
- meta->project_id.toString();
+ meta->slug.remove(".pw.toml");
}
if (!url.isEmpty())
modName = QString("<a href=\"%1\">%2</a>").arg(url, modName);
@@ -61,7 +61,7 @@ QString ExportModsToStringTask(QList<Mod*> mods, Formats format, OptionalData ex
if (meta != nullptr) {
url = (meta->provider == ModPlatform::ResourceProvider::FLAME ? "https://www.curseforge.com/minecraft/mc-mods/"
: "https://modrinth.com/mod/") +
- meta->project_id.toString();
+ meta->slug.remove(".pw.toml");
}
if (!url.isEmpty())
modName = QString("[%1](%2)").arg(modName, url);