Skip to content

Commit cfaa8e3

Browse files
committed
Для первой страницы параметр с номером страницы не подставляется.
1 parent 785834e commit cfaa8e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/AbstractPaginator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ public function url($page): string
155155
$parameters = array_merge($this->query, $parameters);
156156
}
157157

158+
if ($page === 1) {
159+
return $this->path();
160+
}
161+
158162
return $this->path()
159163
. (Str::contains($this->path(), '?') ? '&' : '?')
160164
. Arr::query($parameters)

0 commit comments

Comments
 (0)