mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-15 15:45:56 +08:00
fix: back button issue fixed for traces/logs explorer (#3448)
Co-authored-by: Palash Gupta <palashgdev@gmail.com>
This commit is contained in:
parent
0574350e6e
commit
01312ec286
@ -23,7 +23,7 @@ const useUrlQueryData = <T>(
|
|||||||
|
|
||||||
urlQuery.set(queryKey, newQuery);
|
urlQuery.set(queryKey, newQuery);
|
||||||
const generatedUrl = `${location.pathname}?${urlQuery.toString()}`;
|
const generatedUrl = `${location.pathname}?${urlQuery.toString()}`;
|
||||||
history.push(generatedUrl);
|
history.replace(generatedUrl);
|
||||||
},
|
},
|
||||||
[history, location, urlQuery, queryKey],
|
[history, location, urlQuery, queryKey],
|
||||||
);
|
);
|
||||||
|
@ -492,7 +492,7 @@ export function QueryBuilderProvider({
|
|||||||
|
|
||||||
const generatedUrl = `${location.pathname}?${urlQuery}`;
|
const generatedUrl = `${location.pathname}?${urlQuery}`;
|
||||||
|
|
||||||
history.push(generatedUrl);
|
history.replace(generatedUrl);
|
||||||
},
|
},
|
||||||
[history, location.pathname, urlQuery],
|
[history, location.pathname, urlQuery],
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user