Giter Club home page Giter Club logo

Comments (4)

jacquie-engbrecht avatar jacquie-engbrecht commented on May 23, 2024

I am having the same issue when I click on one of the language links after my session has expired. Also testing locally.

from laravel-language.

drsdre avatar drsdre commented on May 23, 2024

Found out that this issue occurs if the session expires between the page visit and the language switch. This is where it tries to use $session-previousUrl() which returns null and that cannot be redirected. Added a patch that returns the user to home see #16

from laravel-language.

turtlechase avatar turtlechase commented on May 23, 2024

Having same problem. @drsdre solution works.

Since it's not merged yet, what I did was created a new controller extending Akaunting\Language\Controllers\Language

Copied methods back (the one we need to edit) and setLocale (because for some reason it's private)

Did @drsdre changes to the method back

Changed controller at app/language.php to the newly created controller

Working for now

from laravel-language.

denisdulici avatar denisdulici commented on May 23, 2024

Sorry guys for the late reaction, this has been fixed now.

from laravel-language.

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.