remove utm marks

This commit is contained in:
smanylov
2026-04-16 12:40:15 +07:00
parent ad247fb269
commit 365aeded43
@@ -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>