% if data['media_type'] == 'track':
-
% endif
% if data['media_type'] == 'episode':
diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py
index e5b128a9..1f38c7ee 100644
--- a/plexpy/notification_handler.py
+++ b/plexpy/notification_handler.py
@@ -666,7 +666,7 @@ def build_notify_text(session=None, timeline=None, notify_action=None, agent_id=
remaining_duration = duration - view_offset
# Build Plex URL
- metadata['plex_url'] = 'https://app.plex.tv/web/app#!/server/{0}/details/%2Flibrary%2Fmetadata%2F{1}'.format(
+ metadata['plex_url'] = 'https://app.plex.tv/web/app#!/server/{0}/details?key=%2Flibrary%2Fmetadata%2F{1}'.format(
plexpy.CONFIG.PMS_IDENTIFIER, str(rating_key))
# Get media IDs from guid and build URLs