Skip to content
This repository was archived by the owner on Mar 31, 2019. It is now read-only.

Commit d3dac58

Browse files
author
Hidekazu Kobayashi
committed
impl new feature: angular-ui#1235
1 parent ac00ed4 commit d3dac58

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/state.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,11 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {
192192
states[name] = state;
193193

194194
// Register the state in the global state list and with $urlRouter if necessary.
195-
if (!state[abstractKey] && state.url) {
195+
if ((!state[abstractKey] || typeof state[abstractKey] === 'string') &&
196+
state.url) {
196197
$urlRouterProvider.when(state.url, ['$match', '$stateParams', function ($match, $stateParams) {
197198
if ($state.$current.navigable != state || !equalForKeys($match, $stateParams)) {
198-
$state.transitionTo(state, $match, { location: false });
199+
$state.transitionTo(state, $match, { location: 'replace' });
199200
}
200201
}]);
201202
}

0 commit comments

Comments
 (0)