Skip to content

Commit

Permalink
fix special links handler for embedded search links
Browse files Browse the repository at this point in the history
  • Loading branch information
Aprillion committed Sep 15, 2023
1 parent 7f73900 commit 233a9b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {useSearch, Question as QuestionType, SearchResult} from '~/hooks/search'
import AutoHeight from 'react-auto-height'
import Dialog from '~/components/dialog'
import {useSearchParams} from '@remix-run/react'
import {LINK_WITHOUT_DETAILS_CLS} from '~/routes/questions/$question'

type Props = {
onSiteAnswersRef: MutableRefObject<QuestionType[]>
Expand Down Expand Up @@ -186,7 +187,7 @@ const ResultItem = ({
return (
<a
href={`https://aisafety.info/?state=${pageid}_`}
className="transparent-link result-item result-item-box"
className={`transparent-link result-item result-item-box ${LINK_WITHOUT_DETAILS_CLS}`}
target="_blank"
rel="noreferrer"
>
Expand Down

0 comments on commit 233a9b9

Please sign in to comment.