Link to posts or mentions in group activity leads to error page

I was able to reproduce this on two different installations running 2.5.0.beta4 e81a4048e3. You can even reproduce it here on meta.discourse.org!

  1. Go to a group’s page like /g/group_name
  2. Click on Activity (or just go to https://meta.discourse.org/g/theme_creator/activity/posts)
  3. Click on a topic name
  4. See the error

It generates an url like this one:
https://meta.discourse.org/g/theme_creator/activity/undefined/t/self-hosting-for-free-with-oracle-cloud/139184/13

Same thing happens under “Mentions”

Searched and found this previous bug, which isn’t the same but maybe helpful? Following a direct link to group activity results in 400 error

6 Likes

@vinothkannans can you investigate and fix?

3 Likes

+1 Confirm the error on my website.

1 Like

This commit should resolve this issue.

4 Likes

Tested and works. Thank you!

3 Likes