Pull request: client: use strict search by client

Updates #4271.

Squashed commit of the following:

commit 10a113126306fce51b4dd10a696b8c7d3213a445
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Fri Feb 11 18:37:18 2022 +0300

    client: more strict search

commit 7aa24129195c0eba442bfe43564469fdb2a5b138
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Fri Feb 11 18:22:18 2022 +0300

    client: use strict search by client
This commit is contained in:
Ainar Garipov 2022-02-11 18:56:08 +03:00
parent 6824eec308
commit b43aa86cae
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ const ClientCell = ({
{isDetailed && clientName && !whoisAvailable && ( {isDetailed && clientName && !whoisAvailable && (
<Link <Link
className="detailed-info d-none d-sm-block logs__text logs__text--link" className="detailed-info d-none d-sm-block logs__text logs__text--link"
to={`logs?search=${encodeURIComponent(clientName)}`} to={`logs?search="${encodeURIComponent(clientName)}"`}
title={clientName} title={clientName}
> >
{clientName} {clientName}

View File

@ -64,7 +64,7 @@ export const renderFormattedClientCell = (value, info, isDetailed = false, isLog
} }
return <div className="logs__text mw-100" title={value}> return <div className="logs__text mw-100" title={value}>
<Link to={`logs?search=${encodeURIComponent(value)}`}>{nameContainer}</Link> <Link to={`logs?search="${encodeURIComponent(value)}"`}>{nameContainer}</Link>
{whoisContainer} {whoisContainer}
</div>; </div>;
}; };