$this->pageNo = \intval($_REQUEST['pageNo']);
}
- $this->linkParameters = 'pip=' . $this->pip;
+ $linkParameters = [
+ 'pip' => $this->pip,
+ ];
if ($this->entryType !== null) {
- $this->linkParameters .= '&entryType=' . $this->entryType;
+ $linkParameters['entryType'] = $this->entryType;
}
if (isset($_REQUEST['entryFilter'])) {
}
if ($this->entryFilter !== null && $this->entryFilter !== '') {
- $this->linkParameters .= '&entryFilter=' . $this->entryFilter;
+ $linkParameters['entryFilter'] = $this->entryFilter;
}
+ $this->linkParameters = \http_build_query($linkParameters, '', '&');
+
$this->canonicalURL = LinkHandler::getInstance()->getLink('DevtoolsProjectPipEntryList', [
'id' => $this->project->projectID,
], $this->linkParameters);