(path?: string | number | null)
| 598 | path(): string; |
| 599 | path(path: string | number | null): this; |
| 600 | path(path?: string | number | null): string | this { |
| 601 | if (typeof path === 'undefined') { |
| 602 | return this.$$path; |
| 603 | } |
| 604 | |
| 605 | // null path converts to empty string. Prepend with "/" if needed. |
| 606 | path = path !== null ? path.toString() : ''; |
| 607 | path = path.charAt(0) === '/' ? path : '/' + path; |
| 608 | |
| 609 | this.$$path = path; |
| 610 | |
| 611 | this.composeUrls(); |
| 612 | return this; |
| 613 | } |
| 614 | |
| 615 | /** |
| 616 | * Retrieves a map of the search parameters of the current URL, or changes a search |
no test coverage detected