mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Incorrect subfolder authors urls when embedding
This commit is contained in:
parent
737c606710
commit
cbd2fbf9a8
@ -16,11 +16,11 @@
|
|||||||
<%- end %>
|
<%- end %>
|
||||||
|
|
||||||
<div class='author'>
|
<div class='author'>
|
||||||
<a href='/users/<%= post.username %>' target="_blank"><img src='<%= post.user.small_avatar_url %>' alt=''></a>
|
<a href='<%= Discourse.base_url %>/users/<%= post.username %>' target="_blank"><img src='<%= post.user.small_avatar_url %>' alt=''></a>
|
||||||
</div>
|
</div>
|
||||||
<div class='cooked'>
|
<div class='cooked'>
|
||||||
<h3 class='username'>
|
<h3 class='username'>
|
||||||
<a href='/users/<%= post.username %>' target="_blank" class='<% if post.user.staff? %>staff<% end %><% if post.user.new_user? %>new-user<% end %>'><%= post.user.username %></a>
|
<a href='<%= Discourse.base_url %>/users/<%= post.username %>' target="_blank" class='<% if post.user.staff? %>staff<% end %><% if post.user.new_user? %>new-user<% end %>'><%= post.user.username %></a>
|
||||||
<%- if post.user.title.present? %>
|
<%- if post.user.title.present? %>
|
||||||
<span class='title'><%= post.user.title %></span>
|
<span class='title'><%= post.user.title %></span>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
|
Loading…
Reference in New Issue
Block a user