This repository was archived by the owner on Jan 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ Versions prior to 0.4.0 were released as the package "weierophinney/hal".
24
24
25
25
### Fixed
26
26
27
- - Nothing.
27
+ - [ #36 ] ( https://github.com/zendframework/zend-expressive-hal/pull/36 )
28
+ Fixes lost parameter queries in collection output.
28
29
29
30
## 1.0.0 - 2018-03-15
30
31
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ protected function generateLinkForPage(
71
71
) : Link {
72
72
$ paginationParam = $ metadata ->getPaginationParam ();
73
73
$ paginationType = $ metadata ->getPaginationParamType ();
74
- $ url = $ metadata ->getUrl () . '? ' . http_build_query ($ request ->getQueryParams ());;
74
+ $ url = $ metadata ->getUrl () . '? ' . http_build_query ($ request ->getQueryParams ());
75
75
76
76
switch ($ paginationType ) {
77
77
case Metadata \AbstractCollectionMetadata::TYPE_PLACEHOLDER :
@@ -104,7 +104,7 @@ protected function generateSelfLink(
104
104
105
105
$ queryStringArgs = $ request ->getQueryParams ();
106
106
$ url = $ metadata ->getUrl ();
107
- if ($ queryStringArgs !== null ) {
107
+ if ($ queryStringArgs !== null ) {
108
108
$ url .= '? ' . http_build_query ($ queryStringArgs );
109
109
}
110
110
You can’t perform that action at this time.
0 commit comments