* Normalizes an external URL path. * If the given URL doesn't begin with a leading slash (`'/'`), adds one * before normalizing. Adds a hash if `HashLocationStrategy` is * in use, or the `APP_BASE_HREF` if the `PathLocationStrategy` is in use. * * @param url String representing a URL.
(url: string)
| 146 | * @returns A normalized platform-specific URL. |
| 147 | */ |
| 148 | prepareExternalUrl(url: string): string { |
| 149 | if (url && url[0] !== '/') { |
| 150 | url = '/' + url; |
| 151 | } |
| 152 | return this._locationStrategy.prepareExternalUrl(url); |
| 153 | } |
| 154 | |
| 155 | // TODO: rename this method to pushState |
| 156 | /** |
no outgoing calls
no test coverage detected