Skip to content

Rewrite URL when closing vis type selection modal - #26327

Merged
timroes merged 1 commit into
elastic:masterfrom
timroes:fix-new-vis-editor-url
Nov 29, 2018
Merged

timroes merged 1 commit into
elastic:masterfrom
timroes:fix-new-vis-editor-url

Conversation

@timroes

@timroes timroes commented Nov 28, 2018

Copy link
Copy Markdown
Contributor

Summary

Fixes #26230

The empty state no longer will redirect to the /visualize/new URL, but instead load the new vis modal in place.

Also when you navigate to the URL, and close the dialog, the URL will now change to /visualize. This will actually refresh the route. Since the URL is scheduled for removal, I think it's not worth messing with the window history at this place (and thus need to build URLs manually), but we can just rely on kbnUrl service instead.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@timroes timroes added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// labels Nov 28, 2018
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-app

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@cjcenizal cjcenizal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Tested locally, code review.

@timroes
timroes merged commit 64e26c4 into elastic:master Nov 29, 2018
@timroes
timroes deleted the fix-new-vis-editor-url branch November 29, 2018 07:07
timroes added a commit to timroes/kibana that referenced this pull request Nov 29, 2018
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Visualizations Generic visualization features (in case no more specific feature label is available) Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v6.6.0 v7.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Closing "New visualization" modal doesn't update the URL

3 participants