Issue Bug Closed

#84925config.forceTypeValue does not work as PageLinkBuilder defaults to 0 if no pagetype parameter is set

Andreas Allacher 05/04/18, 14:24 updated 10/02/18, 10:47

Description

In PageLinkBuilder there is the following code:

$pageType = $linkDetails['pagetype'] ?? 0;

This $pageType parameter is then used as typeOverride for this link which has precedence over config.forceTypeValue
However, in case of it not being set config.forceTypeValue should be used.

I think the easiest solution would be to default to en empty string as that is the default value for linkData or in 9.x createTotalUrlAndLinkData also.

Reviews 2