Giter Site home page Giter Site logo

Comments (9)

danielroe avatar danielroe commented on June 21, 2024

cc: @huang-julien

from nuxt.js.

huang-julien avatar huang-julien commented on June 21, 2024

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.

github-actions avatar github-actions commented on June 21, 2024

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.

Wulawa avatar Wulawa commented on June 21, 2024

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.

sumomo015 avatar sumomo015 commented on June 21, 2024

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.

amandesai01 avatar amandesai01 commented on June 21, 2024

Facing same issue. Works fine with 3.11.2 and breaks in 3.12.1 (next release).

from nuxt.js.

amandesai01 avatar amandesai01 commented on June 21, 2024

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.

markbrouch avatar markbrouch commented on June 21, 2024

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.

deleteme avatar deleteme commented on June 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.