diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-10-10 22:18:35 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-10-10 23:46:23 +0100 |
| commit | d72b284a0846ca045e548a1c77ad11813bcbab92 (patch) | |
| tree | c78962f625387d5690001276a686412b43655dd1 /app/Http/RequestHandlers/LoginAction.php | |
| parent | 2d49f7de3b1ce9163abdb1271bf1de85850457d4 (diff) | |
| download | webtrees-d72b284a0846ca045e548a1c77ad11813bcbab92.tar.gz webtrees-d72b284a0846ca045e548a1c77ad11813bcbab92.tar.bz2 webtrees-d72b284a0846ca045e548a1c77ad11813bcbab92.zip | |
Working on routing
Diffstat (limited to 'app/Http/RequestHandlers/LoginAction.php')
| -rw-r--r-- | app/Http/RequestHandlers/LoginAction.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Http/RequestHandlers/LoginAction.php b/app/Http/RequestHandlers/LoginAction.php index 2fb5f74b3f..2124381242 100644 --- a/app/Http/RequestHandlers/LoginAction.php +++ b/app/Http/RequestHandlers/LoginAction.php @@ -78,12 +78,12 @@ class LoginAction extends AbstractBaseController // If there was no referring page, redirect to "my page". if ($url === '') { // Switch to a tree where we have a genealogy record (or keep to the current/default). - $ged = (string) DB::table('gedcom') + $tree = (string) DB::table('gedcom') ->join('user_gedcom_setting', 'gedcom.gedcom_id', '=', 'user_gedcom_setting.gedcom_id') ->where('user_id', '=', Auth::id()) ->value('gedcom_name'); - $url = route('tree-page', ['ged' => $ged]); + $url = route('tree-page', ['tree' => $tree]); } // Redirect to the target URL |
