You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Navigate to https://cookbook.vaadin.com// (two trailing slashes)
Observe:
Uncaught TypeError: Failed to construct 'URL': Invalid URL
at Function.__createUrl (vaadin-bundle-5a8c8610a0f26788a61d.cache.js:2399)
at re.get __effectiveBaseUrl [as __effectiveBaseUrl] (vaadin-bundle-5a8c8610a0f26788a61d.cache.js:2399)
at re.__normalizePathname (vaadin-bundle-5a8c8610a0f26788a61d.cache.js:2399)
at re.__onNavigationEvent (vaadin-bundle-5a8c8610a0f26788a61d.cache.js:2399)
at re.setRoutes (vaadin-bundle-5a8c8610a0f26788a61d.cache.js:2399)
at Module.<anonymous> (vaadin-bundle-5a8c8610a0f26788a61d.cache.js:2847)
at i (vaadin-bundle-5a8c8610a0f26788a61d.cache.js:1)
at vaadin-bundle-5a8c8610a0f26788a61d.cache.js:1
at vaadin-bundle-5a8c8610a0f26788a61d.cache.js:1
The text was updated successfully, but these errors were encountered:
Fixes#517
When not set explicitly, the router constructor discovers `baseUrl`
using the `<base href>` value and initial document URL. However, only
the pathname from the discovered base URL was taken for the default
value of the `baseUrl` property. In case of initial pathname starting with
double slash `//`, such a value was then throwing `Invalid URL` error when
used as the URL constructor’s first argument.
This changes the default value discovery of `baseUrl`, so that it uses
an actual URL instead of only pathname to avoid throwing errors.
Fixes#517
When not set explicitly, the router constructor discovers `baseUrl`
using the `<base href>` value and initial document URL. However, only
the pathname from the discovered base URL was taken for the default
value of the `baseUrl` property. In case of initial pathname starting with
double slash `//`, such a value was then throwing `Invalid URL` error when
used as the URL constructor’s first argument.
This changes the default value discovery of `baseUrl`, so that it uses
an actual URL instead of only pathname to avoid throwing errors.
Steps to reproduce:
https://cookbook.vaadin.com//
(two trailing slashes)Observe:
The text was updated successfully, but these errors were encountered: