32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-12-26 01:57:30 +00:00

Fix frontend edit weblink URL

This commit is contained in:
Tuan Pham Ngoc 2021-07-18 20:02:12 +07:00
parent 9107b7e1de
commit 6bedd432f8
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ class Icon
}
$weblinkUrl = RouteHelper::getWeblinkRoute($weblink->slug, $weblink->catid, $weblink->language);
$url = $weblinkUrl . '&task=weblink.edit&id=' . $weblink->id . '&return=' . base64_encode($uri);
$url = $weblinkUrl . '&task=weblink.edit&w_id=' . $weblink->id . '&return=' . base64_encode($uri);
if ((int) $weblink->state === 0)
{

View File

@ -90,7 +90,7 @@ class Router extends RouterView
$webLink->setKey('id')->setParent($category, 'catid');
$this->registerView($webLink);
$form = new RouterViewConfiguration('form');
$form->setKey('id');
$form->setKey('w_id');
$this->registerView($form);
parent::__construct($app, $menu);