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:03 +0300
commitda6f846a496f70dd5339ed1bdba35842feaa1286 (patch)
treec6eac05bb2ea4e81c13f86462a6862e971c95c69 /launcher
parent836e8d2e28b4ab63e6c4189410c38ad1a7fd2718 (diff)
downloadPrismLauncher-da6f846a496f70dd5339ed1bdba35842feaa1286.tar.gz
PrismLauncher-da6f846a496f70dd5339ed1bdba35842feaa1286.tar.bz2
PrismLauncher-da6f846a496f70dd5339ed1bdba35842feaa1286.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);