@sveltejs/kit 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/runtime/client/client.js +3 -3
- package/src/version.js +1 -1
package/package.json
CHANGED
|
@@ -660,10 +660,10 @@ export function create_client(app, target) {
|
|
|
660
660
|
server: server_data_node,
|
|
661
661
|
universal: node.universal?.load ? { type: 'data', data, uses } : null,
|
|
662
662
|
data: data ?? server_data_node?.data ?? null,
|
|
663
|
-
// if `paths.base === '/a/b/c`, then the root route is `/a/b/c/`,
|
|
664
|
-
//
|
|
663
|
+
// if `paths.base === '/a/b/c`, then the root route is always `/a/b/c/`, regardless of
|
|
664
|
+
// the `trailingSlash` route option, so that relative paths to JS and CSS work
|
|
665
665
|
slash:
|
|
666
|
-
url.pathname === base || url.pathname === base + '/'
|
|
666
|
+
base && (url.pathname === base || url.pathname === base + '/')
|
|
667
667
|
? 'always'
|
|
668
668
|
: node.universal?.trailingSlash ?? server_data_node?.slash
|
|
669
669
|
};
|
package/src/version.js
CHANGED