LDSign
1
Hi
I would like to build a link with an anchor target to jump to a specific place on an other page.
Ive tried using the # as stated in the documents:
['controller' => 'documents', 'action' => 'index', '#' => $document['slug']]
but it doesnt work
# Invalid path provided; must not contain a URI fragment
Whats wrong here?
I am using latest CakePHP 3.6
Thanks,
Frank
Graziel
2
LDSign
3
Thanks for your hint: Interesting - its from Zend:
\vendor\zendframework\zend-diactoros\src\URI.php
Its installed through cake…so what now?
Frank
Graziel
4
ive checked it on 3.6.13 and it works for me,
<?= $this->Html->link('test', [
'controller' => 'Home',
'action' => 'index',
'#' => 'test'
]) ?>
you need to give more code at this point