Skip to content

Commit ecbb082

Browse files
committed
Added include param parameter to Url::getAbsoluteUrl method.
1 parent b94dc43 commit ecbb082

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Pecee/Http/Url.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,10 @@ public function getRelativeUrl($includeParams = true): string
447447
/**
448448
* Returns the absolute url
449449
*
450+
* @param bool $includeParams
450451
* @return string
451452
*/
452-
public function getAbsoluteUrl(): string
453+
public function getAbsoluteUrl($includeParams = true): string
453454
{
454455
$scheme = $this->scheme !== null ? $this->scheme . '://' : '';
455456
$host = $this->host ?? '';
@@ -458,7 +459,7 @@ public function getAbsoluteUrl(): string
458459
$pass = $this->password !== null ? ':' . $this->password : '';
459460
$pass = ($user || $pass) ? $pass . '@' : '';
460461

461-
return $scheme . $user . $pass . $host . $port . $this->getRelativeUrl();
462+
return $scheme . $user . $pass . $host . $port . $this->getRelativeUrl($includeParams);
462463
}
463464

464465
/**

0 commit comments

Comments
 (0)