Skip to content

Commit

Permalink
fix wrong linking
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkIntaqt committed Nov 21, 2023
1 parent 9fc8301 commit cca6bb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module/Start.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,11 @@ class Start extends Component {
if (parsedList !== false) {

recentlySearchedFor = parsedList.map((val) => {
return <a key={JSON.stringify(val)} href={"/" + val[0] + "/" + val[1]} className={StyleSheet.searchedUser} onClick={goTo}>
return <a key={JSON.stringify(val)} href={"/" + val[0] + "/" + val[1].replace(/#/g, "-")} className={StyleSheet.searchedUser} onClick={goTo}>
<LazyLoadImage src={"https://lolcdn.darkintaqt.com/cdn/profileicon/" + val[2]} placeholderSrc={"https://lolcdn.darkintaqt.com/cdn/profileicon/29"} width={26} height={26} />
<p>
{val[1]}
<span className={StyleSheet.userRegion}>#{val[0]}</span>
<span className={StyleSheet.userRegion}>{val[0]}</span>
</p>
</a>
})
Expand Down

0 comments on commit cca6bb0

Please sign in to comment.