Introduction
Whether it's a redirect URL or the URL of an image, the fact that it's correctly formatted is paramount to ensuring proper focntioning of the element concerned.
How to check a link-type redirect URL?
To function correctly, URLs must respect a precise structure:
https://[domain name]/[path]/[resource]?param1=value1¶m2=value2#ancre
How to check an image source URL?
In the case of an image url it ends with one of the following extensions:
.png, .jpg, .gif...
Example of a well-formed url for an image:
https://s3-eu-west-1.amazonaws.com/www.snblymm.com/dnd_editor/prod/8b4e962d-4c35-4aa6-b2b4-ef938bb43ad5/13380/1.jpg
Tips: Clicking on a functional image url opens the image in question in a browser.
The case of a custom url
A URL can be customized globally or partially. To test whether the redirection is working correctly, it is necessary to send a proof so that you can check that it is working correctly in the email you receive.
Understanding http error codes :
- 400 Bad Request : Invalid request syntax or malformed data.
- 401 Unauthorized : Authentication required or failed.
403 Forbidden : Access forbidden, even if you are authenticated.
- 404 Not Found : Resource not found (e.g. wrong URL).
- 500 Internal Server Error : Generic server error (e.g. unhandled exception).
- 502 Bad Gateway : Bad response from intermediate server (e.g. proxy).
Good practices
- Systematically check each link before sending.
- Use the preview and send tests to ensure images are displayed correctly.
- Prefer file names without spaces or special characters
Conclusion
Make sure every URL respects the correct structure to avoid any missing displays. If in doubt, test. A well-formatted link is an image that displays.
The correct construction of redirect URLs is essential to guarantee the user experience, avoid navigation errors, and optimize campaign performance. That's why it's always important to ensure that the URL contains a protocol, a valid domain name and an appropriate extension. A well-formed URL is a controlled redirection.