Login Refferer is Null

Hi, i followed this guide here: User Registration

now when i submit the registration i go to this url:

image

and this results in showing me my Error Page.

the problem here i have is that once i set the url parameter like here

<a <?php e($item->isOpen(), 'aria-current ') ?> href="<?= $item->url(['params' => ['login.referrer' => $page->id()]]) ?>"><?= $item->title()->html() ?></a>

it sets the parameter like such, example: http://kirby.local/registration/login.referrer;home

and so when the registration controller wants to set the parameter, it fails because the parameter is Null.

if ($referrer = param('referrer')) {
        $kirby->session()->set('login.referrer', $referrer);
    }

and this results in my lognRefferer not getting any value from the session

go('login/referrer:' . $site->loginReferrer());

this is my site method:

return kirby()->session()->pull('login.referrer') ?? '/';

what am i doing wrong ? Thanks a lot

As far as I see, you set params login.referrer but getting referrer param. You should use same name:

<?= $item->url(['params' => ['referrer' => $page->id()]]) ?>

<?php
if ($referrer = param('referrer')) {
  $kirby->session()->set('login.referrer', $referrer);
}
?>

Also you need to be careful about the separator. For windows it is ; and for unix :