Skip to content

Commit

Permalink
Fix: Link 중복요청 방지를 위해 target='_blank' 속성 추가
Browse files Browse the repository at this point in the history
- Link 태그의 SPA 방식으로 인한 중복 요청이 발생
- 전체 페이지를 새로 받아오도록 target='_blank' 속성 추가
  • Loading branch information
NamJongtae committed Nov 5, 2024
1 parent 3878f66 commit 31b858b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/commons/api-endpoints-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default function ApiEndPointsTable({ data }: IProps) {
<Link
className="text-blue-600 hover:underline"
href={row.url ? `/api/${row.url}` : `/api/${row.endpoint}`}
target="_blank"
prefetch={false}
>
{row.endpoint}
Expand Down
1 change: 1 addition & 0 deletions src/components/home/resources/resources-rows.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default function ResourcesRows({ resource, info }: IProps) {
<Link
href={`/api${resource}`}
className="text-blue-600 hover:underline"
target="_blank"
prefetch={false}
>
{resource}
Expand Down

0 comments on commit 31b858b

Please sign in to comment.