Created attachment 176454 [details] Screenshot of custom User Agent Manager setting for specific web page not sent correctly SUMMARY In the User Agent Manager, when setting a custom user agent string for specific sites, Falkon 24.08.3 still sends the global string instead. STEPS TO REPRODUCE 1. Create a web page that requires a custom user agent string to access it, such as PHP's $_SERVER['HTTP_USER_AGENT'] variable. 2. Create a custom user agent for that web page in the User Agent Manager for that specific domain and/or page 3. Attempt to access the page in Falkon 24.08.3 OR 1. Create a web page that echos the user agent string 2. Create a custom user agent for that web page or the domain 3. Open the page in Falkon 24.08.3 OBSERVED RESULT The user agent string is the Global one, rather than the custom one set for that specific page or domain EXPECTED RESULT The user agent string should be the one set in the section for specific sites. SOFTWARE/OS VERSIONS Linux: Linux Mint Versions 21 & 22 ADDITIONAL INFORMATION
Hello, it works fine for me. I believe this weorks with QUrl.host() only, so remove the "https://" and the trailing slash. When I write "duckduckgo.com" and user "whatever" as userAgent, DuckDuckGo will see "whatever" as user agent. PS: I agree with that this dialog needs some polishing. Best regards, Juraj
A possibly relevant merge request was started @ https://invent.kde.org/network/falkon/-/merge_requests/100
Git commit 23204227a55a88fcc9f1c05916697968c9f6be7e by Juraj Oravec. Committed on 16/06/2025 at 18:08. Pushed by jurajo into branch 'master'. UserAgentDialog: Use QUrl::host on user URL input The system internally works with QUrl::host to compare the visited and stored addresses to set UserAgent. Signed-off-by: Juraj Oravec <jurajoravec@mailo.com> M +1 -1 CMakeLists.txt M +35 -0 src/lib/app/profilemanager.cpp M +3 -2 src/lib/preferences/useragentdialog.cpp https://invent.kde.org/network/falkon/-/commit/23204227a55a88fcc9f1c05916697968c9f6be7e