Skip to content

Commit

Permalink
tag fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
g-pooja-03 committed Nov 26, 2024
1 parent 6bf925b commit 14c13bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/components/main/questionPage/question/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const QuestionView = ({ q, inCommunity }: QuestionProps) => {
const searchParams = new URLSearchParams();
searchParams.set('tag', tagName);

navigate(`/home?${searchParams.toString()}`);
navigate(`/tags`);
};

const deleteQuestion = async (question: Question) => {
Expand Down
2 changes: 1 addition & 1 deletion client/src/hooks/useTagPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const useTagPage = () => {
const searchParams = new URLSearchParams();
searchParams.set('tag', tagName);

navigate(`/home?${searchParams.toString()}`);
navigate(`/questions`);
};

useEffect(() => {
Expand Down

0 comments on commit 14c13bd

Please sign in to comment.