-
-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
login redirect object url exploding the uri #35
Comments
Hmm, what version are you using? I just tested it and it seems to work. Also as a fix for now you can try setting |
im using the 1.0.0beta with a fresh install, im redirected to the account page but never the actual page set as a redirect in the auth.js console logging the data object in the success callback of fetchperform shows this {"url":"auth/login","method":"POST","redirect":{"0":"/","1":"f","2":"i","3":"n","4":"d","name":"account"},"body":{"email":"admin@admin.com","password":"admin"},"rememberMe":false,"query":{},"root":"http://api.dev"} it looks like its redirecting to the name not the value of [0], if i change the component vue file name in app.js for account to find i see the expected page, but regardless it doesn't explain why its exploding the value of the redirect to a single letter in an array |
There is no 1.0.0-beta, do you mean 1.1.0-beta? |
Also can you give me version of vue and vue-modules you are using. |
Sorry 1.0.0 version of vue 1.1.0-beta of your auth code, heres my package.json on gist |
Can I see some of your code. How you are initializing it. On Oct 13, 2016 20:43, "jkirkby91-2" notifications@github.com wrote:
|
literally standard app all ive added is two vue pages find and link list nothing elese modified, here is the app.js https://gist.github.com/jkirkby91-2/7307347e407975a602c9d6d78db2662a from auth.js just changed the logindata object from / to /find
|
So where are you setting that loginData? On Oct 13, 2016 22:15, "jkirkby91-2" notifications@github.com wrote:
|
in login.vue nothing changed apart from username to email export default {
|
Ok, so I see you are hacking the plugin directly? Can you make sure it's the latest version. Or send me your hacked version rob@websanova.com (also with the lib/*.js files). |
One thing.... if you update the plugin manually, but only the main file and not the utils, that maybe an issue... |
Ok, so this is working for you now? |
Also, make sure you have the latest |
i will update this and let you know |
This should be well fixed in the latest 2.x stream as there are no longer any Vue objects being passed into the plugin. |
After logging in im trying to redirect the app to a page called "/find"
but i keep getting redirected to the 404 page.
In the fetchPerform function if i console.log(data.redirect)
the object.redirect should contain the url "/find"
but the logged data is redirect
:
Object
0
:
"/"
1
:
"f"
2
:
"i"
3
:
"n"
4
:
"d"
name
:
"/account"
the loginData object in auth.js is set like
can you explain why this is doing this?
The text was updated successfully, but these errors were encountered: