Redirect Media to activity page

Hello there, how can I redirect rtmedia uploaded photos to the activity status page rather than it’s media page?

Example: I want pictures I upload to redirect to ( rather than, (

Thank you. :smile:

Hi @jacob,

You can edit media-gallery-item.php template and chagne the URL.

Hi @jacob,

To explain it more,

media-gallery-item.php is a template used to render each media item/album in a gallery view.

Here is the line which determines the URL which is ->

You can override this template and add your own code to return new URL instead of rtmedia_permalink().

Is there a “better” solution for this? With filters for example?