A Tale of Two URLs – One Opens and One Does Nothing. But Why?

I am using an action (to automate MS Teams). This involves using the OpenURL action, both of which open with Chrome.
URL 1:

https://teams.microsoft.com/l/chat/0/0?users=g.d.hughes@lancaster.ac.uk

URL 2:

https://teams.microsoft.com/l/entity/0d820ecd-def2-4297-adad-78056cde7c78/_djb2_msteams_prefix_1142302972?context=%7B%22subEntityId%22%3Anull%2C%22channelId%22%3A%2219%3Afaed2f38bebe43f380386c0503640044%40thread.skype%22%7D&groupId=dc457b1d-508b-4315-84d4-7e00a3d738ab&tenantId=9c9bcd11-977a-4e9c-a9a0-bc734090164a

I can open both URLs directly in Chrome, and they work as expected.
However, I can only get URL1 to work via the OpenURL action.

Any ideas on how to debug this?

1 Like

Ok. I solved it myself (I have a habit of doing that)
For reference there seems to be a limit for the URL length.
I used a URL shortening service and that seemed to fix it.

Hey Chris,

I'm not so sure this is due to length, but the URL is definitely invalid for some reason.

@peternlewis?

-Chris

There is no (practical) limit on length.

Turn off Processing Text Tokens in the gear menu of the Open a URL action.

The issue is the percent characters and their processing in the field.

1 Like