()
| 495 | */ |
| 496 | class URLHandler { |
| 497 | static basicURL() { |
| 498 | const url_path = window.location.pathname.split('/').slice(0, -2).join('/'); |
| 499 | return window.location.origin + (url_path.length ? url_path : ''); |
| 500 | } |
| 501 | /** |
| 502 | * Read all URL parameters into a map. |
| 503 | * @returns {Map} the url parameters as a key-value store (ES6 map) |