Change order of query parameters of Twitch Player URLs. (#5326)
This ensures that it doesn't "fake redirect". Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "Toasts.hpp"
|
||||
|
||||
#include "Application.hpp"
|
||||
#include "common/Common.hpp"
|
||||
#include "common/Literals.hpp"
|
||||
#include "common/QLogging.hpp"
|
||||
#include "common/Version.hpp"
|
||||
@@ -177,9 +178,8 @@ public:
|
||||
case ToastReaction::OpenInPlayer:
|
||||
if (platform_ == Platform::Twitch)
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl(
|
||||
u"https://player.twitch.tv/?parent=twitch.tv&channel=" %
|
||||
channelName_));
|
||||
QDesktopServices::openUrl(
|
||||
QUrl(TWITCH_PLAYER_URL.arg(channelName_)));
|
||||
}
|
||||
break;
|
||||
case ToastReaction::OpenInStreamlink: {
|
||||
|
||||
Reference in New Issue
Block a user