Bug 453811

Summary: Ability to define search engine search URL with no sanitization of queries
Product: [Frameworks and Libraries] frameworks-kio Reporter: Kishore Gopalakrishnan <kishore96>
Component: generalAssignee: Alexander Lohnau <alexander.lohnau>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: kdelibs-bugs-null, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Kishore Gopalakrishnan 2022-05-15 07:15:44 UTC
Currently, it looks like the runner does some sanitization of the query string before substituting it into the URL that the user has configured for a particular search engine (e.g. it converts / to %2F). This happens with both the \{0} and \{@} placeholders. 

Would it be possible to have another kind of placeholder that inserts the literal query without such sanitization? The sanitization breaks some search engines (e.g. one would like to search on some academic search engines using a DOI which usually contains slashes, such as '10.1017/jfm.2020.598')

Operating System: Arch Linux
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Kernel Version: 5.17.7-arch1-1 (64-bit)
Graphics Platform: X11
Comment 1 Alexander Lohnau 2022-12-18 17:01:16 UTC
Can you please give an example of such an engine?
Comment 2 Kishore Gopalakrishnan 2022-12-24 13:09:38 UTC
(In reply to Alexander Lohnau from comment #1)
> Can you please give an example of such an engine?

The search engine I initially requested this for ( https://sci-hub.se ) now seems to work even with the sanitized queries. Feel free to close this if it's too niche a feature.
Comment 3 Nate Graham 2022-12-24 14:48:35 UTC
Yeah I think so, sorry. :)
Comment 4 Alexander Lohnau 2022-12-27 08:16:43 UTC
That was actually the one I was trying out before asking you for the engine :D