diff options
author | 2018-06-19 10:13:09 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:52 +0300 | |
commit | f717caed6536bc94cfad2e510574b1dac75a34dc (patch) | |
tree | 8a664d69517bf479fd1173e22bd751becd7fa573 /vnext/src | |
parent | 9de059571fa6ba633977fcc2be6d48ddb8b677d0 (diff) |
fix recommendation link
Diffstat (limited to 'vnext/src')
-rw-r--r-- | vnext/src/components/Thread.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js index ed97f4cf..db38ee2d 100644 --- a/vnext/src/components/Thread.js +++ b/vnext/src/components/Thread.js @@ -1,4 +1,5 @@ import React from 'react'; +import { Link } from 'react-router-dom'; import * as qs from 'query-string'; import moment from 'moment'; @@ -72,7 +73,7 @@ export default class Thread extends React.Component { <div className="msg-recomms">{`Recommended by (${msg.recommendations.length}): `} { msg.recommendations.map(it => ( - <a href={`/${it}/`}>{it}</a> + <Link to={`/${it}/`}>{it}</Link> )).reduce((prev, curr) => [prev, ', ', curr]) } </div> |