remove utm marks
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
'use client'
|
||||
|
||||
import { SearchItem } from './file-search-panel'
|
||||
|
||||
export function SearchedGlobalFilesList({ list }: { list: SearchItem[] }) {
|
||||
|
||||
const cleanUrlForDisplay = (url: string) => {
|
||||
if (!url) return '#';
|
||||
return url.split('?')[0];
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
{list.map(
|
||||
@@ -35,8 +42,8 @@ export function SearchedGlobalFilesList({ list }: { list: SearchItem[] }) {
|
||||
<div className="global-result-passage">
|
||||
{item?.pageTitle}
|
||||
</div>
|
||||
<a href={item?.pageUrl} target="_blank" className="global-result-url" title={item?.pageUrl}>
|
||||
{item?.pageUrl}
|
||||
<a href={item?.pageUrl ? cleanUrlForDisplay(item?.pageUrl) : ''} target="_blank" className="global-result-url" title={item?.pageUrl ? cleanUrlForDisplay(item?.pageUrl) : ''}>
|
||||
{item?.pageUrl ? cleanUrlForDisplay(item?.pageUrl) : ''}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user