Comments (9)
cc: @huang-julien
from nuxt.js.
Do you have a minimal reproduction please ? At first, it looks like this is due to the revert we made in nuxt 3.12. Nuxt encode the location header when redirecting in SSR
from nuxt.js.
Would you be able to provide a reproduction? 🙏
More info
Why do I need to provide a reproduction?
Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.
What will happen?
If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritize it based on its severity and how many people we think it might affect.
If needs reproduction
labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.
How can I create a reproduction?
We have a couple of templates for starting with a minimal reproduction:
👉 https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz
👉 https://codesandbox.io/s/github/nuxt/starter/v3-codesandbox
A public GitHub repository is also perfect. 👌
Please ensure that the reproduction is as minimal as possible. See more details in our guide.
You might also find these other articles interesting and/or helpful:
from nuxt.js.
Do you have a minimal reproduction please ? At first, it looks like this is due to the revert we made in nuxt 3.12. Nuxt encode the location header when redirecting in SSR
@huang-julien
https://stackblitz.com/edit/github-lfphyg?file=app.vue
This example, redirect parameter is Double-Encoded but if i don't use encodeURIComponent, the hash is lost.
from nuxt.js.
I had the same issue. Here is a minimal reproduction.
https://stackblitz.com/edit/github-obvyf4-uwozwd?file=pages%2Findex.vue
path should be /redirected?redirect_to=%2Ftest
, but it was /redirected?redirect_to=%252Ftest
from nuxt.js.
Facing same issue. Works fine with 3.11.2
and breaks in 3.12.1
(next release).
from nuxt.js.
From discussion, it seems that this is rather h3
issue. However, I can see that both the versions use exact same h3 version. How is this possible? just curious.
from nuxt.js.
I am also encountering this issue after upgrading from 3.11.2
to 3.12.2
. Our authentication server already encodes a query string param for a redirect URI which after 3.12.2
becomes doubly encoded and breaks the redirect parsing.
I suggest this change to be reverted, as this is a breaking change in the 3.12
minor release: https://github.com/nuxt/nuxt/blame/f2868f8c72320009e4502f97456b13f77c6b0322/packages/nuxt/src/app/composables/router.ts#L172
from nuxt.js.
Echoing the impact of this bug:
Redirections to external urls are currently broken, if they include parameters that are already encoded. This is common when dealing with authentication redirects.
Also, this seems like a big blind spot in test coverage.
from nuxt.js.
Related Issues (20)
- "Failed to resolve import source - TypeScript modules" HOT 1
- v3.12.2: [unhandledRejection] errors with `nuxt dev` HOT 3
- useHead body style attributes cleared when changing pages HOT 3
- Nitro plugin path doesn't resolve correctly when `compatibilityVersion: 4` is set HOT 1
- Runtime Crash When Passing `to.matched` from Middleware to `router.resolve` Without Error Message HOT 3
- Types auto-import
- Error "ENAMETOOLONG: name too long" occurs during pre-rendering on versions 3.11 and 3.12
- undefined title in google SERP? HOT 10
- When I build project, packed folder will loss some file in server/node_modules HOT 2
- The QueryString is double URL encoded when running `navigateTo` on the server side. HOT 1
- Instance type of Server component does not contain `refresh` HOT 2
- Hydration mismatch for nested server component HOT 3
- How to use nginx to reverse proxy nuxt3 with 5 different paths? HOT 1
- Route middleware causing duplicate runs on error HOT 2
- Custom useFetch losing original event during SSR HOT 1
- You can achieve this by setting `boost` to `false` in `nuxt.config.js`. HOT 1
- Slot "default" invoked outside of the render function when using a composable (contains useLazyAsyncData) inside ClientOnly component HOT 1
- Imported css file with `?raw` should not be resolved HOT 1
- ERROR [nuxt] [request error] [unhandled] [500] [GET] "api/xx/yy": <no response> fetch failed. About using $fetch in server
- how to set boost to false in nuxt.config.js
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt.js.