()
| 104 | } |
| 105 | |
| 106 | get href(): string { |
| 107 | this.url.searchParams.set('q', this.get() + ' '); |
| 108 | if (labelLinkRegex.test(this.url.pathname)) { |
| 109 | // Avoid a redirection to the conversation list that would drop the search query #5176 |
| 110 | this.url.pathname = this.url.pathname.replace(/\/labels\/.+$/, '/issues'); |
| 111 | } |
| 112 | |
| 113 | return this.url.href; |
| 114 | } |
| 115 | |
| 116 | edit(callback: (queryParts: string[]) => string[]): this { |
| 117 | this.queryParts = callback(this.getQueryParts()); |