Closed phil294 closed 3 years ago
Hi! First, thanks for your time and reporting this!
Unfortunately I cannot reproduce your issue, I tested on vanilla project and with examples repository. Headers are okay:
HTTP/1.1 302 Found
Location: /about
Date: Sun, 03 Jan 2021 21:18:18 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Transfer-Encoding: chunked
Can you provide a reproduction code ?
Unfortunately I cannot reproduce your issue
huh that is weird. Check out this repro / file / line: https://github.com/phil294/examples/blob/redirect-bug-demo/src/views/AsyncData.vue#L20
Run this very branch, open /async-data
, refresh the site and you should see the problem. Tested on FF + Chrome.
Thanks once again for this awesome project!
Oh I did not see, I made a mistake in docs, it's not to
but path
:
redirect({ path: '/vuex' }, 302);
ok that works great, thank you
Describe the bug The redirect helper does not redirect to the desired target but instead redirects to the current page, resulting in
ERR_TOO_MANY_REDIRECTS
on Chrome.To Reproduce As per docs:
Results in these response headers:
Expected behavior In this example, the response header
Tested with the latest uvue/examples repository.
Please indicate versions of: