Skip to content

Commit

Permalink
Fix old link
Browse files Browse the repository at this point in the history
  • Loading branch information
fisharebest committed May 28, 2021
1 parent 8465b6b commit 2e6fecf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Http/RequestHandlers/AddUnlinkedPage.php
Expand Up @@ -60,13 +60,15 @@ public function handle(ServerRequestInterface $request): ResponseInterface
],
];

$cancel_url = route(ManageTrees::class, ['tree' => $tree->name()]);

return $this->viewResponse('edit/new-individual', [
'cancel_url' => route('manage-trees', ['tree' => $tree->name()]),
'cancel_url' => $cancel_url,
'facts' => $facts,
'post_url' => route(AddUnlinkedAction::class, ['tree' => $tree->name()]),
'tree' => $tree,
'title' => I18N::translate('Create an individual'),
'url' => $request->getQueryParams()['url'] ?? route('manage-trees', ['tree' => $tree->name()]),
'url' => $request->getQueryParams()['url'] ?? $cancel_url,
]);
}
}

0 comments on commit 2e6fecf

Please sign in to comment.