Creating Pretty URLs
Permalink
I have pretty URLs enabled and they're working fine, but I was surprised that the $this->url() method doesn't return pretty URLs (they still have "index.php" in). I've replaced it with getCollectionURL() from the 'navigation' helper, but how do I get this to display a pretty URL:
$this->url( '/login', 'change_password', $uHash );
Also, what's the best way to do the following link:
$nh = Loader::helper('navigation');
<a href="<?php echo $nh->getCollectionURL(Page::getByPath('/login')); ?>logout">Log out</a>
Kind regards,
jkns
$this->url( '/login', 'change_password', $uHash );
Also, what's the best way to do the following link:
$nh = Loader::helper('navigation');
<a href="<?php echo $nh->getCollectionURL(Page::getByPath('/login')); ?>logout">Log out</a>
Kind regards,
jkns
Have you tried adding
to you /config/site.php file?
Best Wishes,
Mike