Modify app/views/email/_post.html.erb in hosting discourse


(suicoder) #1

My company has a hosting discourse. We need to modify username href in html email notification from href="<%=Discourse.base_url%>/users/<%= post.user.username_lower%>" to href=“http://anotherwebsite/users/<%= post.user.username_lower%>”

We found no where to modify it in admin UI except modifying app/views/email/_post.html.erb. However, it is a hosting discourse, we cannot access _post.html.erb in host.

Is there any workaround to modify username href in html email notification directly in admin UI?

Regards,


(Régis Hanol) #2

You’ll have to override that file via a plugin.