MrJuliuss / syntara

Admin package for Laravel 4.
MIT License
302 stars 77 forks source link

Bug in user activation by admin #176

Closed shojibflamon closed 9 years ago

shojibflamon commented 9 years ago

When admin activate user from all user list nothing happens you can see put request from console panel

shojibflamon commented 9 years ago

in user.js find "url": window.location.href.toString()+'/../user/'+userId+'/activate/',

replace "url": window.location.href.toString()+'/../user/'+userId+'/activate',

MrJuliuss commented 9 years ago

Hi, it works fine on my syntara (1.2.10)...

shojibflamon commented 9 years ago

but when i activate user from admin in console panel i just see : http://localhost/dashboard/user/4/activate but my actual link should be : http://localhost/laravel/laravel-media/public/dashboard/users?page=1/../user/4/activate

when i cut last slah (/) it works fine.

shojibflamon commented 9 years ago

Same Problem happens when i activate user in pagination like ?page=2 there is nothing it should look like

        "type": "PUT",
        "url": window.location.href.toString().split('?')[0]+'/../user/'+userId+'/activate',
        "data": {userId : userId},
        "dataType": "json"

please update and notify me

thanks

MrJuliuss commented 9 years ago

Hi, could you try with this fix ? https://github.com/MrJuliuss/syntara/commit/800d0d87c881f43d89c61a00e777d41e811cf70e

Remove the slash '/' should no have impact : work fine on my syntara, only the activation is broken if i'm on a page > 1