mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 17:45:52 -05:00
Fix welcomingcommittee mention link href
This commit is contained in:
parent
dc79eb54c3
commit
927a4b915b
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ module.exports = (text, opts) => {
|
||||||
if (opts.usernames) {
|
if (opts.usernames) {
|
||||||
replacedText = reactStringReplace(replacedText, /@([\w-]+)/g, (match, i) => (
|
replacedText = reactStringReplace(replacedText, /@([\w-]+)/g, (match, i) => (
|
||||||
<a
|
<a
|
||||||
href={`/users/${match}`}
|
href={match.toLowerCase() === 'welcomingcommittee' ? '/studios/146521/' : `/users/${match}`}
|
||||||
key={match + i}
|
key={match + i}
|
||||||
>@{match}</a>
|
>@{match}</a>
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in a new issue