Issue Bug Closed

#53763AbstractRecordList doesn't check if $this->script already contains a "?"

Clément MICHELET 11/19/13, 17:10 updated 05/01/15, 22:04

Description

Checked on 6.1.5 (and 4.5.29)

I’ve created a class which inherit from AbstractRecordList which doesn’t override listUrl.

public function listURL($altId = '') {
    return $this->script . '?id=' . (strcmp($altId, '') ? $altId : $this->id);
}

I define the script with “\TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl(‘my_identifier’);”.

The pagination URL is something like “mod.php?M=my_identifier?id=&pointer=10”. The link is broken because it must start with a “&” instead of a “?” in the URL.

To solve that, I have to override listUrl method.

AbstractRecordList::listUrl method could take care of the script content to avoid this.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.