We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ec817b commit 36531f1Copy full SHA for 36531f1
x-pack/plugins/lens/public/app_plugin/mounter.tsx
@@ -97,9 +97,12 @@ export async function mountApp(
97
98
const redirectTo = (routeProps: RouteComponentProps<{ id?: string }>, savedObjectId?: string) => {
99
if (!savedObjectId) {
100
- routeProps.history.push('/');
+ routeProps.history.push({ pathname: '/', search: routeProps.history.location.search });
101
} else {
102
- routeProps.history.push(`/edit/${savedObjectId}`);
+ routeProps.history.push({
103
+ pathname: `/edit/${savedObjectId}`,
104
+ search: routeProps.history.location.search,
105
+ });
106
}
107
};
108
0 commit comments