Skip to content
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

Prevent error when session has expired #16

Merged
merged 2 commits into from
Nov 2, 2019

Conversation

drsdre
Copy link
Contributor

@drsdre drsdre commented Oct 8, 2019

When using the 'back' route and the session expired between last page visit and language switch, it produces the error 'Object of class Illuminate\Routing\Redirector could not be converted to string'. This patch uses $session->previousUrl() only if set, if not it goes back to home.

When using the 'back' route and the session expired between last page visit and language switch, it produces the error 'Object of class Illuminate\Routing\Redirector could not be converted to string'. This patch uses $session->previousUrl() only if set, if not it goes back to home.
@denisdulici denisdulici merged commit d578be3 into akaunting:master Nov 2, 2019
@denisdulici
Copy link
Member

Thanks @drsdre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants