Changed "commented" link in member feed to redirect to post
fix https://linear.app/tryghost/issue/ENG-1217/activity-log-link-for-comments-goes-to-wrong-place - the post analytics page does not contain any comments, so it's not the most intuitive location to point the user. Instead, we can send them to the frontend of the post, where they can view comments
This commit is contained in:
parent
fa430666bf
commit
5f36bef451
@ -330,7 +330,7 @@ export default class ParseMemberEventHelper extends Helper {
|
||||
* Get internal route props for a clickable object
|
||||
*/
|
||||
getRoute(event) {
|
||||
if (['comment_event', 'click_event', 'feedback_event'].includes(event.type)) {
|
||||
if (['click_event', 'feedback_event'].includes(event.type)) {
|
||||
if (event.data.post) {
|
||||
return {
|
||||
name: 'posts.analytics',
|
||||
|
Loading…
Reference in New Issue
Block a user