Modifications Made
Added from_notification Parameter in Links:
- In
themes/assets/js/notifications.js: Added thefrom_notificationparameter when clicking on a notification in the dropdown. - In
app/Views/notifications/index.php: Added thefrom_notificationparameter in the links on the notifications page.
Automatic Detection and Marking:
- In
app/Views/discussions/show.php:- Detected the
from_notificationparameter in the URL. - Automatically marks the notification as read when the page loads.
- Cleans up the URL by removing the parameter after processing.
- Detected the
Workflow:
- When you click on a notification (either from the dropdown or the
/notificationspage), the link includes?from_notification={id}. - Upon arriving at the discussion page, the notification is marked as read.
- The URL is cleaned to remove the parameter.
Notifications are now automatically marked as read when you view the associated message.
This discussion is locked
Report
Navigation
3 Posts Statistics