Chris Messina Posted November 23, 2020 Share Posted November 23, 2020 (edited) I've noticed that many OpenSearch providers (granted there aren't that many it seems) end up with HTML-encoded ampersands in the detected URL, for example: http://camelcamelcamel.com/search?utm_campaign=osd&utm_source=chrome&utm_medium=www&q={query} Alfred should not HTML-encoded ampersands, given that this is the actual URL in the Open Search definition: <Url type="text/html" rel="results" template="http://camelcamelcamel.com/search?utm_campaign=osd&utm_source=chrome&utm_medium=www&q={searchTerms}"/> Edited November 23, 2020 by chris added URL to open search XML file Link to comment Share on other sites More sharing options...
deanishe Posted November 23, 2020 Share Posted November 23, 2020 (edited) 2 hours ago, chris said: Alfred should not HTML-encoded ampersands, given that this is the actual URL in the Open Search definition: <Url type="text/html" rel="results" template="http://camelcamelcamel.com/search?utm_campaign=osd&utm_source=chrome&utm_medium=www&q={searchTerms}"/> Alfred isn't encoding the URL. This is the actual raw source of the URL (after gzip decompression): <Url type="text/html" rel="results" template="http://camelcamelcamel.com/search?utm_campaign=osd&utm_source=chrome&utm_medium=www&q={searchTerms}"/> Whatever you're looking at the file in (your browser?) is showing you a processed version of the XML. Use something like curl or httpie to fetch XML/HTML if you want to see the raw source code. Edited November 23, 2020 by deanishe Link to comment Share on other sites More sharing options...
Chris Messina Posted November 23, 2020 Author Share Posted November 23, 2020 Ah, weird! I suppose my browser is modifying the output there. Well — perhaps if I were to rephrase my request: it would be nice if Alfred replaced the HTML-encoded ampersand with a naked ampersand. It's a small change, but would be convenient for me if it were made, since I make the change manually now. Link to comment Share on other sites More sharing options...
Andrew Posted November 24, 2020 Share Posted November 24, 2020 Hmm interesting, Alfred should be decoding the XML special chars, I'll take a look at what's going on and get this fixed. Cheers, Andrew Chris Messina 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now