Fixed Link in alert 'Your media X was edited' sent to user is broken

36degrees

Member
Affected version
v2.2.2
The link to the edited media included in the alert alert_user_xfmg_media_edit is relative (does not start with /) so it only works when visited from the homepage.

For example, if I was in a forum /forums/my-forum.1/, clicking the alert takes me to /forums/main-forum.2/gallery/my-photo.7/ instead of /gallery/my-photo.7/.

Comparing the templates for alert_user_xfmg_media_move, alert_user_xfmg_media_delete and alert_user_xfmg_media_delete, only alert_user_xfmg_media_move wraps $extra.link with a call to base_url – I suspect the delete notification is also affected by this same bug, but have not verified this.

Wrapping $extra.link with a call to base_url seems to fix the issue.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XFMG release (2.2.3).

Change log:
Fix a number of alert templates that may have been incorrectly using relative URLs in some cases.
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom