diff --git a/web/src/Events.jsx b/web/src/Events.jsx
index 0607f4073..f7565bcc8 100644
--- a/web/src/Events.jsx
+++ b/web/src/Events.jsx
@@ -11,7 +11,7 @@ export default function Events({ url } = {}) {
const apiHost = useContext(ApiHost);
const [events, setEvents] = useState([]);
- const searchParams = new URL(`${window.location.protocol}//${window.location.host}${url || '/events'}`).searchParams;
+ const { pathname, searchParams } = new URL(`${window.location.protocol}//${window.location.host}${url || '/events'}`);
const searchParamsString = searchParams.toString();
useEffect(async () => {
@@ -32,9 +32,10 @@ export default function Events({ url } = {}) {
{searchKeys.map((filterKey) => (
))}
@@ -71,17 +72,32 @@ export default function Events({ url } = {}) {
-
+
|
-
+
|
{(score * 100).toFixed(2)}% |
{zones.map((zone) => (
-
-
+
))}
@@ -100,19 +116,19 @@ export default function Events({ url } = {}) {
);
}
-function Filterable({ searchParams, paramName, name }) {
+function Filterable({ pathname, searchParams, paramName, name }) {
const params = new URLSearchParams(searchParams);
params.set(paramName, name);
- return {name};
+ return {name};
}
-function UnFilterable({ searchParams, paramName, name }) {
+function UnFilterable({ pathname, searchParams, paramName, name }) {
const params = new URLSearchParams(searchParams);
params.delete(paramName);
return (
{name}
|