* Normalizes the given path and compares to the current normalized path. * * @param path The given URL path. * @param query Query parameters. * * @returns True if the given URL path is equal to the current normalized path, false * otherwise.
(path: string, query: string = '')
| 121 | * otherwise. |
| 122 | */ |
| 123 | isCurrentPathEqualTo(path: string, query: string = ''): boolean { |
| 124 | return this.path() == this.normalize(path + normalizeQueryParams(query)); |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * Normalizes a URL path by stripping any trailing slashes. |
no test coverage detected