We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57c3f91 commit ef568f7Copy full SHA for ef568f7
1 file changed
web/src/components/redirects/prometheus-redirect-page.tsx
@@ -11,7 +11,13 @@ const PrometheusRouterRedirect: FC = () => {
11
12
const params = getAllQueryArguments();
13
// leaving perspective redirect to future work
14
- return <Navigate to={`/${urlRoot}/query-browser?query0=${params['g0.expr'] || ''}`} />;
+ return (
15
+ <Navigate
16
+ to={`/${urlRoot}/query-browser?query0=${
17
+ params['g0.expr'] ? encodeURIComponent(params['g0.expr']) : ''
18
+ }`}
19
+ />
20
+ );
21
};
22
23
export default PrometheusRouterRedirect;
0 commit comments