Skip to content

Commit

Permalink
Allow url into tracker when it is /edit/
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomThomson committed Feb 4, 2021
1 parent 8f9aa86 commit fab3f24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/visualize/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ export class VisualizePlugin
],
getHistory: () => this.currentHistory!,
onBeforeNavLinkSaved: (urlToSave: string) => {
if (this.isLinkedToOriginatingApp?.()) {
if (
!urlToSave.includes(`${VisualizeConstants.EDIT_PATH}/`) &&
this.isLinkedToOriginatingApp?.()
) {
return core.http.basePath.prepend('/app/visualize');
}
return urlToSave;
Expand Down

0 comments on commit fab3f24

Please sign in to comment.