WhatsApp link opens 404 page (Magic Text breaks URL)

Hi everyone,
I have an issue with an External Link for opening WhatsApp in my Adalo app.

I want to create a link like this:

https://wa.me/213{{Current Job > Whatsapp}}

But Adalo forces the Magic Text to go on a new line, which breaks the URL and WhatsApp opens a 404 page.

Example of what happens:
 https://wa.me/213
{{Current Job > Whatsapp}}
Since the Magic Text is placed on a second line, the URL becomes invalid.

I also tried using replace() inside the External Link, but Adalo does not support Custom Formula inside URLs.

Screenshot of the issue:
(Attach the screenshot you uploaded here)

Does anyone know how to fix this or the correct way to build a WhatsApp URL using dynamic phone numbers?

Thanks!





Hi @osama.mb,

  1. Remove the whitespace in the action or add a new action, and re-configure the URL.

  2. Once you adds the number from magic text, change it’s format from default to none. (If you could store the full number in the database which is with the 213, that would be good)

Let me know!

Thank you and have a great day!

Thanks for the clarification.
Just to confirm: there is actually no whitespace in the action.
The magic text only moves to the next line automatically because the input field is narrow — it’s just a visual wrap inside Adalo’s editor, not an actual space in the URL.

So the URL is clean, and there are no extra spaces before or after the magic text. The line break you see is only a display issue due to the limited width of the field.

Hi @osama.mb,

Most probably the magic text value contains some characters which are not URL-friendly. It’s not the newline - unless you explicitly pressed “enter” in this field, Adalo just wraps the input by itself.
You can examine what URL the app is trying to open in the browser address line on the 404 page.
There is a component “URLEncode/Decode” in the marketplace, you can use it as a workaround:

Best,
Victor.

1 Like

:backhand_index_pointing_down:

Thank you, Victor, for your help and support. Your guidance was very clear and helped me solve the issue quickly. I really appreciate your time and effort!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.