* Changes the browser's URL to a normalized version of a given URL, and pushes a * new item onto the platform's history. * * @param path URL path to normalize. * @param query Query parameters. * @param state Location history state. *
(path: string, query: string = '', state: any = null)
| 169 | * |
| 170 | */ |
| 171 | go(path: string, query: string = '', state: any = null): void { |
| 172 | this._locationStrategy.pushState(state, '', path, query); |
| 173 | this._notifyUrlChangeListeners( |
| 174 | this.prepareExternalUrl(path + normalizeQueryParams(query)), |
| 175 | state, |
| 176 | ); |
| 177 | } |
| 178 | |
| 179 | /** |
| 180 | * Changes the browser's URL to a normalized version of the given URL, and replaces |