SDupuie Posted July 30, 2016 Share Posted July 30, 2016 I am trying to create a custom web search that will take an input of "J6/AK5SD" (without the quotes) and produce: https://www.qrz.com/db/j6/ak5sd The following outputs will also work: https://www.qrz.com/db/`j6/ak5sd` -or- https://www.qrz.com/db/"j6/ak5sd" I suspect that Safari just reduces these formats to the first format, but I'm not sure. I've tried a few forward quote and backward quote options without luck. Can anyone tell me how to do that? Thanks, Scott Link to comment
Andrew Posted August 3, 2016 Share Posted August 3, 2016 Could you share the custom web search URL you currently have in Alfred? This should be super simple with a URL of, for example: http://example.com/{query} Cheers, Andrew Link to comment
SDupuie Posted August 4, 2016 Author Share Posted August 4, 2016 The custom URL I am using is: https://www.qrz.com/db/{query} When I original wrote this help request it did't seem to be handling a slash inside the {query} the way I expected, but now it is. I'm not sure what, if anything, is different now but it seems to be working. Thanks for the reply. Scott Link to comment
deanishe Posted August 4, 2016 Share Posted August 4, 2016 It's most likely the encoding options in your custom search. Alfred can't know if your input ({query}) is meant to be part of the URL or a parameter. Parameters need to be encoded so that they can't be mistaken for part of the URL. That means that / is replaced with %2F, for example. Alfred assumes by default that {query} is a parameter, so if you don't turn encoding off, when you add j6/ak5sd to https://www.qrz.com/db/, you get https://www.qrz.com/db/j6%2Fak5sd, not https://www.qrz.com/db/j6/ak5sd Does that make sense? Link to comment
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