Problem opening URL

Try to open the following URL using a macro (https://archief.amsterdam/indexen/persons?sa=%7B%22person_1%22:%7B%22search_t_gezinsnaam%22:%22Smit%22%7D%7D).
I get an error message. Probably because of %7B% and/or 1%22:%7B% in the URL. How can I solve this?
If I paste this web address directly (in Safari) it works.
Thanks in advance.

OpenURL.kmmacros (1.9 KB)

I'm not certain, but you might want to turn off the flag called "process text normally" (in the first action) because that option calls for the processing of percent characters. If you turn that off, ("process nothing") you might get better results. Even if that doesn't fix the problem, you should probably turn that option off whenever you have many "%" characters in your text.

1 Like

This is exactly correct, and you will have to turn that flag off. Keyboard Maestro is attempting to convert the % signs and text within into values, and that messes up the URL.

-rob.

That was what I suspected when he said:

1 Like

I am still new in this matter. But how do I do this?
Maybe someone can provide a revised macro?

Click the small gear icon at the right hand edge of the action, and you'll see various "Process" options. Select the one that says "Process Nothing."

-rob.

Works perfectly. Thank you very much.
Learn something new about this program every day.. :+1:

1 Like