Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph committed Apr 13, 2020
1 parent 4d153e5 commit b557e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,6 @@ public static function setPreviousUrl($url)
*/
public static function getPreviousUrl()
{
return url(session()->get('admin.prev.url')) ?: url()->previous();
return (string) (session()->get('admin.prev.url') ? url(session()->get('admin.prev.url')) : url()->previous());
}
}

0 comments on commit b557e72

Please sign in to comment.