Issue: Implement Short URLs in Shared Emails
Description
Currently, when sharing resources via email (e.g., item links, request pages), the system sends long and verbose URLs, which are not user-friendly and clutter the email. This issue aims to replace those long URLs with short URLs for a cleaner and more professional email experience.
Goals
- Generate short URLs on the backend.
- Update the frontend to use and handle these short URLs correctly.
- Ensure full backward compatibility with existing long URLs (optional but recommended).
Requirements
Backend
- Check existing code that generates and sends emails containing URLs.
- Integrate a URL shortening mechanism (either custom or third-party like Bitly, TinyURL, or a Mongo-based ID shortening).
- Implement a method to:
- Store mapping of short code ↔ full URL (if using custom service).
- Redirect short URLs to their corresponding long destination.
- Replace long URLs in the outgoing email template with the new short URLs.
Frontend
- Identify where URLs are shared or previewed before being emailed.
- Ensure the UI logic uses the short URL received from the backend.
- Handle redirection properly on the client-side, if applicable.
Issue: Implement Short URLs in Shared Emails
Description
Currently, when sharing resources via email (e.g., item links, request pages), the system sends long and verbose URLs, which are not user-friendly and clutter the email. This issue aims to replace those long URLs with short URLs for a cleaner and more professional email experience.
Goals
Requirements
Backend
Frontend