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

 
mkly replied on at Permalink Best Answer Reply
mkly
Hello,
Have you tried adding
define('URL_REWRITING_ALL', true);

to you /config/site.php file?

Best Wishes,
Mike
jkns replied on at Permalink Reply
Perfect. Thank you mkly.