Skip to content

[5.x] [kbnUrl] reload the route when going from "" to "/" - #8998

Merged
spalger merged 1 commit into
5.xfrom
jasper/backport/8815/5.x
Nov 8, 2016
Merged

spalger merged 1 commit into
5.xfrom
jasper/backport/8815/5.x

Conversation

@elastic-jasper

Copy link
Copy Markdown
Contributor

[kbnUrl] reload the route when going from "" to "/"

Backports PR #8815

Commit 1:
[kbnUrl] reload the route when going from "" to "/"

In timelion the initial route is set to '' which might not be perfectly correct, but works fine. When clicking the "new" button for the first time this causes the route to update from '' to '/', which the kbnUrl service assumes will cause a route change and does not try to force the route to reload. Instead, the router sees this as a noop and the change to the route has no effect unless you click the "new" button a second time.

Commit 2:
[kbnUrl] clarify the purpose _shouldAutoReload

Commit 3:
[kbnUrl] fix the tests

Backports PR #8815

**Commit 1:**
[kbnUrl] reload the route when going from "" to "/"

In timelion the initial route is set to '' which might not be perfectly correct, but works fine. When clicking the "new" button for the first time this causes the route to update from '' to '/', which the kbnUrl service assumes will cause a route change and does not try to force the route to reload. Instead, the router sees this as a noop and the change to the route has no effect unless you click the "new" button a second time.

* Original sha: a7304ec
* Authored by spalger <email@spalger.com> on 2016-10-24T20:43:40Z

**Commit 2:**
[kbnUrl] clarify the purpose _shouldAutoReload

* Original sha: fbfbae3
* Authored by spalger <email@spalger.com> on 2016-10-24T23:45:52Z

**Commit 3:**
[kbnUrl] fix the tests

* Original sha: cc9c2f6
* Authored by spalger <email@spalger.com> on 2016-10-25T00:31:22Z
@elastic-jasper elastic-jasper added the backport This PR is a backport of another PR label Nov 7, 2016
@spalger
spalger merged commit fc8cef7 into 5.x Nov 8, 2016
@epixa
epixa deleted the jasper/backport/8815/5.x branch November 15, 2016 00:41
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
Backports PR elastic#8815

**Commit 1:**
[kbnUrl] reload the route when going from "" to "/"

In timelion the initial route is set to '' which might not be perfectly correct, but works fine. When clicking the "new" button for the first time this causes the route to update from '' to '/', which the kbnUrl service assumes will cause a route change and does not try to force the route to reload. Instead, the router sees this as a noop and the change to the route has no effect unless you click the "new" button a second time.

* Original sha: a7304ec
* Authored by spalger <email@spalger.com> on 2016-10-24T20:43:40Z

**Commit 2:**
[kbnUrl] clarify the purpose _shouldAutoReload

* Original sha: fbfbae3
* Authored by spalger <email@spalger.com> on 2016-10-24T23:45:52Z

**Commit 3:**
[kbnUrl] fix the tests

* Original sha: cc9c2f6
* Authored by spalger <email@spalger.com> on 2016-10-25T00:31:22Z

Former-commit-id: fc8cef7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants