Closed
Description
I couldn't figure out why {{ current_page.url }} showed the url of some other page on my front page. I had a dig around and I found these lines in Pico.php (from 74)
while($current_page = current($pages)){
if((isset($meta['title'])) && ($meta['title'] == $current_page['title'])){
break;
}
next($pages);
}
This tells me that the page that is chosen as the current page is the first with the same title, and if the title isn't set, it ends up as the last page.
This kind of sucks. The docs don't say that titles are unique identifiers, and they really shouldn't be. Having two pages with the same title shouldn't break stuff. You can tell them apart by the file name.
Activity