Create specific module to display HTML message when a conversation isn't found in Module\Item\Display

This commit is contained in:
Hypolite Petovan 2023-02-04 19:18:05 -05:00
parent 544348c25a
commit 4e355c0f5e
4 changed files with 58 additions and 9 deletions

View file

@ -341,7 +341,7 @@ class BaseURL
public function redirect(string $toUrl = '', bool $ssl = false)
{
if (!empty(parse_url($toUrl, PHP_URL_SCHEME))) {
throw new HTTPException\InternalServerErrorException("'$toUrl is not a relative path, please use System::externalRedirectTo");
throw new HTTPException\InternalServerErrorException("$toUrl is not a relative path, please use System::externalRedirectTo");
}
$redirectTo = $this->get($ssl) . '/' . ltrim($toUrl, '/');