Skip to content

Commit

Permalink
Merge pull request #612 from bounswe/feature/FE/609/bugfix-link
Browse files Browse the repository at this point in the history
bugfixed for other link
  • Loading branch information
elifkizilky authored Nov 27, 2023
2 parents 16dc45d + 6d8f7ba commit 8fcb100
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ludos/frontend/src/components/ForumTopic.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function ForumTopic(data) {
}}
>
<Link
to={`http://localhost:3000/thread/${data.topic.id}`}
to={`/thread/${data.topic.id}`}
style={{ textDecoration: "none", color: "inherit" }}
>
{data.topic.title}
Expand Down
5 changes: 1 addition & 4 deletions ludos/frontend/src/components/ForumTopicForGame.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,7 @@ function ForumTopic(data) {
fontSize: "20px",
}}
>
<Link
to={`http://localhost:3000/thread/${data.topic.id}`}
style={userStyle}
>
<Link to={`/thread/${data.topic.id}`} style={userStyle}>
{data.topic.title}
</Link>
</Typography>
Expand Down

0 comments on commit 8fcb100

Please sign in to comment.