Jump to content

Microsoft Teams meeting link into a URL field


Ralf
 Share

Recommended Posts

Hello together, have any of you ever tried to insert a Microsoft Teams meeting link into a URL field???

A site I maintain would like to provide meeting URLs via Processwire. I have created a URL field for this but now when I insert such a Microsoft Outlook generated URL in the backend, I get this error:

image.png.35287c388edf5604a3bcc3f97a34c26f.png


Is this a bug or a feature? or can anyone confirm this?

For example, a URL looks like this:
https://teams.microsoft.com/l/meetup-join/19%3ameeting_OTY0NjAwYmUtOGIxNy11OGI5LWExMWMtNThlMmRmZGU5YTZl%40thread.v2/0?context={"Tid"%3a"36cabc20-3b53-4a0d-be6d-1fb3a94f9786"%2c"Oid"%3a"a508db2a-aff9-475e-9cf2-e51581a58320"}

Thanks Ralf

Link to comment
Share on other sites

  • 2 weeks later...

@Jan Romero,

thank you for your answer. For the Field template, do you mean the setting under the Details tab? or more specifically, this one?

Yes, here I have already played through both options (Yes and No).

image.png.e683b0392adfc4dca4c594db60afeb0d.png

Furthermore, in the Details tab under Text settings - Text formatters I have played through the options with and without "HTML Entity Encoder" (also with the point from above) and unfortunately, when I save, I ALWAYS get the error message from my first post... ?

Do you or others have any other ideas??
Or could you try the teams link from above to save in an installation what happens then? Then it would be at least already clarified whether it is a fundamental problem or it is only on my installation?

Thanks in advance
Ralf

 

Postscript:

Strange ... despite error message it saves me the meeting URL. And if I then click a second time on "Save", then I get this hint ...

image.png.7cf060a8592663112d7d0e23fe08c3a9.png

? this is a bit confusing now.

Link to comment
Share on other sites

It's not just quotation marks. In setAttributeValue() in InputfieldURL.module:

input (dirty) value:
https://teams.microsoft.com/l/meetup-join/19%3ameeting_OTY0NjAwYmUtOGIxNy11OGI5LWExMWMtNThlMmRmZGU5YTZl%40thread.v2/0?context={"Tid"%3a"36cabc20-3b53-4a0d-be6d-1fb3a94f9786"%2c"Oid"%3a"a508db2a-aff9-475e-9cf2-e51581a58320"}

sanitized value using sanititer()->url() method:
https://teams.microsoft.com/l/meetup-join/19:meeting_OTY0NjAwYmUtOGIxNy11OGI5LWExMWMtNThlMmRmZGU5YTZl@thread.v2/0?context={"Tid"%3a"36cabc20-3b53-4a0d-be6d-1fb3a94f9786"%2c"Oid"%3a"a508db2a-aff9-475e-9cf2-e51581a58320"}

rawurldecoded value:
https://teams.microsoft.com/l/meetup-join/19:meeting_OTY0NjAwYmUtOGIxNy11OGI5LWExMWMtNThlMmRmZGU5YTZl@thread.v2/0?context={"Tid":"36cabc20-3b53-4a0d-be6d-1fb3a94f9786","Oid":"a508db2a-aff9-475e-9cf2-e51581a58320"}

As sanitized and rawurldecoded values differ, PW returns an error. I'm not sure how te deal with that, perhaps open an issue report? What could you do: a) use plain text field, b) instruct users to rawurldecode the url ? 

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...