improve getCurrentRoutePath for site with suffix path
This commit is contained in:
@@ -33,7 +33,9 @@ abstract class BaseFormRequest
|
||||
|
||||
public function getCurrentRoutePath(): string
|
||||
{
|
||||
return $this->url['path'];
|
||||
$site = parse_url(get_option('siteurl'));
|
||||
|
||||
return str_replace($site['path'], null, $this->url['path']);
|
||||
}
|
||||
|
||||
public function validate(): void
|
||||
|
||||
Reference in New Issue
Block a user