* 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 = '')
| 127 | * otherwise. |
| 128 | */ |
| 129 | isCurrentPathEqualTo(path: string, query: string = ''): boolean { |
| 130 | return this.path() == this.normalize(path + normalizeQueryParams(query)); |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * Normalizes a URL path by stripping any trailing slashes. |
no test coverage detected