Urgent.News

What's breaking now, across thousands of outlets.

Tech

wa.me Links Explained: Formats, Encoding and Gotchas for Pre-Filled WhatsApp Messages

Click-to-chat links ( https://wa.me/ ?text=) look trivial, but they break in surprisingly common ways. Here’s what to get right. The number format Full international format: country code + number No +, spaces, dashes or brackets Drop the national leading zero: UK 07700 900123 becomes 447700900123 A quick JavaScript helper: js function waLink(number, message = '') { const digits =…

Click-to-chat links using wa.me format are simple yet prone to common issues. To create a working link, use full international format for the phone number, dropping any non-digits, national leading zero, and special characters. Encode the message text using UTF-8 encoding, replacing spaces with %20, new lines with %0A, and other special characters with their respective encoded values.

JavaScript offers a helper function to generate these links, while PHP users can use rawurlencode() instead of urlencode(), which converts spaces into +. Be aware that links open WhatsApp Web on desktop, and users can edit the pre-filled text. Automated messages require the WhatsApp Business API, and the number must be registered on WhatsApp to avoid errors.

Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Building Voice Notes for Firefox: Web Audio API, No Cloud, No Account

Most note-taking apps for remote workers are overkill: accounts, sync, subscriptions, storage limits. For quick voice memos between meetings, I wanted something that worked without any of that.

  • Built Voice Notes extension simplifies voice memos for users.
  • No account, cloud service, or subscription required.
  • Uses Web Audio API and MediaRecorder for recording.

When a Cyberattack Heats Supermarket Refrigerators: Lessons for Developers and Security Engineers

Most cybersecurity headlines involve compromised accounts, stolen credentials, ransomware or leaked databases. But what happens when an attacker gains control of a system responsible for keeping food…

  • French supermarkets' refrigeration systems hacked, causing food loss and fires
  • TFG London incident disrupted IT systems and online services
  • Securing operational technology requires multi-layered security approach

More from Wednesday 14 October →