aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Message.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components/Message.js')
-rw-r--r--vnext/src/components/Message.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js
index e9d3eebd..585ae1ac 100644
--- a/vnext/src/components/Message.js
+++ b/vnext/src/components/Message.js
@@ -51,13 +51,13 @@ export default function Message(props) {
<span>&nbsp;Recommend</span>
</a>
) : visitor.uid > 0 ? (
- <a href="/post?body=!+%23{{ msg.mid }}" className="a-like msg-button">
+ <Link to={{pathname: "/post", search: `?body=!+%23${msg.mid}`}} className="a-like msg-button">
<span className="msg-button-icon">
<Icon name="ei-heart" size="s" />
{msg.likes > 0 && (` ${msg.likes}`)}
</span>
<span>&nbsp;Recommend</span>
- </a>
+ </Link>
) : (
<a href="/login" className="a-login msg-button">
<span className="msg-button-icon">