Skip to content

Commit

Permalink
delete optional app state for single doc link too
Browse files Browse the repository at this point in the history
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
  • Loading branch information
abbyhu2000 committed Feb 3, 2024
1 parent ec36fd8 commit 07ec400
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/discover/public/migrate_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function migrateUrlState(oldPath: string, newPath = '/'): string {
path: `context`,
},
{
pattern: '#/doc/:indexPattern/:index\\?:appState?',
pattern: '#/doc/:indexPattern/:id',
extraState: { docView: 'doc' },
path: `doc`,
},
Expand Down Expand Up @@ -99,6 +99,7 @@ export function migrateUrlState(oldPath: string, newPath = '/'): string {
case `doc`:
case `context`:
path = oldPath;
break;
case `discover`:
case `savedSearch`:
const params = matchPath<DiscoverParams>(oldPath, {
Expand Down

0 comments on commit 07ec400

Please sign in to comment.