* 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)
| 163 | * |
| 164 | */ |
| 165 | go(path: string, query: string = '', state: any = null): void { |
| 166 | this._locationStrategy.pushState(state, '', path, query); |
| 167 | this._notifyUrlChangeListeners( |
| 168 | this.prepareExternalUrl(path + normalizeQueryParams(query)), |
| 169 | state, |
| 170 | ); |
| 171 | } |
| 172 | |
| 173 | /** |
| 174 | * Changes the browser's URL to a normalized version of the given URL, and replaces |