protected function getMoreUrl() { $path =
$this->
getOption('link_url'
);
// Return the display URL if there is no custom URL.
if ($this->
getOption('link_display'
) !== 'custom_url' ||
empty($path)) { return $this->view->
getUrl(NULL,
$this->display
['id'
]);
} $parts = UrlHelper::
parse($path);
$options =
$parts;
$tokens =
$this->
getArgumentsTokens();
// If there are no tokens there is nothing else to do.
if (!
empty($tokens)) { $parts['path'
] =
$this->
viewsTokenReplace($parts['path'
],
$tokens);
$parts['fragment'
] =
$this->
viewsTokenReplace($parts['fragment'
],
$tokens);
// Handle query parameters where the key is part of an array.
// For example, f[0] for facets.
array_walk_recursive($parts['query'
],
function D&
$value) use ($tokens) { $value =
$this->
viewsTokenReplace($value,
$tokens);
});