From 7ef8e53c4a2874ba4f26593d799bc95fe04e8341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Mon, 8 Feb 2021 02:52:29 +0100 Subject: [PATCH] Qt: Fix "open wiki" option not using the wiki redirect script The dolphin-redirect.php script seems to have been present since 2012 at least, but we accidentally stopped using it when the "open wiki" feature was reimplemented in DolphinQt2 in 2016. <@delroth> dolphin-redirect.php is slightly smarter and tries to find gameid aliases for e.g. same region <@delroth> uh, I mean different region --- Source/Core/DolphinQt/GameList/GameList.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/GameList/GameList.cpp b/Source/Core/DolphinQt/GameList/GameList.cpp index 65c870b1f4..3aea45a267 100644 --- a/Source/Core/DolphinQt/GameList/GameList.cpp +++ b/Source/Core/DolphinQt/GameList/GameList.cpp @@ -503,7 +503,8 @@ void GameList::OpenWiki() return; QString game_id = QString::fromStdString(game->GetGameID()); - QString url = QStringLiteral("https://wiki.dolphin-emu.org/index.php?title=").append(game_id); + QString url = + QStringLiteral("https://wiki.dolphin-emu.org/dolphin-redirect.php?gameid=").append(game_id); QDesktopServices::openUrl(QUrl(url)); }