Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-mw committed Jun 29, 2022
1 parent e6361e9 commit 187e949
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/MicroweberPackages/Helper/UrlManager.php
Expand Up @@ -105,7 +105,15 @@ public function redirect($url)

$redirectUrl = site_url();
$parseUrl = parse_url($url);

if (isset($parseUrl['host'])) {
if(isset($parseUrl['user']) and $parseUrl['user']){
return \Redirect::to(site_url());
}

if(isset($parseUrl['pass']) and $parseUrl['pass']){
return \Redirect::to(site_url());
}
if ($parseUrl['host'] == site_hostname()) {
$redirectUrl = $url;
}
Expand Down

0 comments on commit 187e949

Please sign in to comment.