()
| 440 | */ |
| 441 | class URLHandler { |
| 442 | static basicURL() { |
| 443 | const url_path = window.location.pathname.split('/').slice(0, -2).join('/'); |
| 444 | return window.location.origin + (url_path.length ? url_path : ''); |
| 445 | } |
| 446 | /** |
| 447 | * Read all URL parameters into a map. |
| 448 | * @returns {Map} the url parameters as a key-value store (ES6 map) |