nuxt-nightly 4.1.4-29330724.5589a44a → 4.1.4-29331135.2311b272

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.
@@ -7,11 +7,10 @@ export default defineNuxtRouteMiddleware(async (to) => {
7
7
  }
8
8
  const rules = await getRouteRules({ path: to.path });
9
9
  if (rules.redirect) {
10
- const path = rules.redirect.includes("#") ? rules.redirect : rules.redirect + to.hash;
11
- if (hasProtocol(path, { acceptRelative: true })) {
12
- window.location.href = path;
10
+ if (hasProtocol(rules.redirect, { acceptRelative: true })) {
11
+ window.location.href = rules.redirect;
13
12
  return false;
14
13
  }
15
- return path;
14
+ return rules.redirect;
16
15
  }
17
16
  });
package/dist/index.mjs CHANGED
@@ -3830,7 +3830,7 @@ function addDeclarationTemplates(ctx, options) {
3830
3830
  });
3831
3831
  }
3832
3832
 
3833
- const version = "4.1.4-29330724.5589a44a";
3833
+ const version = "4.1.4-29331135.2311b272";
3834
3834
 
3835
3835
  const createImportProtectionPatterns = (nuxt, options) => {
3836
3836
  const patterns = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-nightly",
3
- "version": "4.1.4-29330724.5589a44a",
3
+ "version": "4.1.4-29331135.2311b272",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -67,10 +67,10 @@
67
67
  "@nuxt/cli": "npm:@nuxt/cli-nightly@latest",
68
68
  "@nuxt/devalue": "^2.0.2",
69
69
  "@nuxt/devtools": "^2.6.5",
70
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.1.4-29330724.5589a44a",
71
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.4-29330724.5589a44a",
70
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.1.4-29331135.2311b272",
71
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.4-29331135.2311b272",
72
72
  "@nuxt/telemetry": "^2.6.6",
73
- "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.1.4-29330724.5589a44a",
73
+ "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.1.4-29331135.2311b272",
74
74
  "@unhead/vue": "^2.0.14",
75
75
  "@vue/shared": "^3.5.22",
76
76
  "c12": "^3.3.0",