themsaid/laravel-langman-gui

Make the save and sync ajax call relative

Closed this issue · 3 comments

My langman install wasnt saving the new keys and updates, but after some digging i found its because of the ajax call to "/langman/save". Since i dont run my project on the top level, this call fails. Editing it to "langman/save" solves the problem.

Would it be possible to fix it? Or is there a way that i can do it? :-)

Also, thank you for the great package. Helps me save some serious time with the translation woes.

I think it should either be changed to "save" or $request->path().'/save'

Maybe"langman" should stay on the path to distinguish it from some generic service/path/route.

Feel free to open a PR :)