Use slug for url
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
836e8d2e28
commit
da6f846a49
@ -32,7 +32,7 @@ QString ExportModsToStringTask(QList<Mod*> mods, Formats format, OptionalData ex
|
|||||||
if (meta != nullptr) {
|
if (meta != nullptr) {
|
||||||
url = (meta->provider == ModPlatform::ResourceProvider::FLAME ? "https://www.curseforge.com/minecraft/mc-mods/"
|
url = (meta->provider == ModPlatform::ResourceProvider::FLAME ? "https://www.curseforge.com/minecraft/mc-mods/"
|
||||||
: "https://modrinth.com/mod/") +
|
: "https://modrinth.com/mod/") +
|
||||||
meta->project_id.toString();
|
meta->slug.remove(".pw.toml");
|
||||||
}
|
}
|
||||||
if (!url.isEmpty())
|
if (!url.isEmpty())
|
||||||
modName = QString("<a href=\"%1\">%2</a>").arg(url, modName);
|
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) {
|
if (meta != nullptr) {
|
||||||
url = (meta->provider == ModPlatform::ResourceProvider::FLAME ? "https://www.curseforge.com/minecraft/mc-mods/"
|
url = (meta->provider == ModPlatform::ResourceProvider::FLAME ? "https://www.curseforge.com/minecraft/mc-mods/"
|
||||||
: "https://modrinth.com/mod/") +
|
: "https://modrinth.com/mod/") +
|
||||||
meta->project_id.toString();
|
meta->slug.remove(".pw.toml");
|
||||||
}
|
}
|
||||||
if (!url.isEmpty())
|
if (!url.isEmpty())
|
||||||
modName = QString("[%1](%2)").arg(modName, url);
|
modName = QString("[%1](%2)").arg(modName, url);
|
||||||
|
Loading…
Reference in New Issue
Block a user