Comments (4)
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.
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.
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.
Sorry guys for the late reaction, this has been fixed now.
from laravel-language.
Related Issues (20)
- Always return en language HOT 1
- wrong path in /back redirect
- why rely on session previousUrl and not on referrer ? HOT 2
- Problem with Facebook link thumbnail HOT 2
- seems not compatible with laravel-7 HOT 1
- back() & home() routes - undefined $locale variable HOT 1
- Personalized middleware language routes... HOT 1
- Cant change language for logged in user (voyager) HOT 1
- The 404 page doesn't have translated messages HOT 2
- Undefined property HOT 1
- Flag images aren't published to the public folder on installation
- Prefix url not found HOT 2
- change controller and middleware dir HOT 6
- Default fallback language? HOT 3
- Flags not visible after instalation
- Auth save issue HOT 4
- Be able to set a default language
- Issue with custom namespace
- Pdf generation EURO problem HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-language.