(path)
| 169 | } |
| 170 | |
| 171 | function withBasePath(path) { |
| 172 | const base = getBasePathFromLocation(); |
| 173 | const s = String(path || ''); |
| 174 | if (!base || !s.startsWith('/')) return s; |
| 175 | if (s === base || s.startsWith(base + '/')) return s; |
| 176 | return base + s; |
| 177 | } |
| 178 | |
| 179 | function buildShareUrl(path) { |
| 180 | const urlParams = new URLSearchParams(window.location.search || ''); |
no test coverage detected