concrete5/concrete5 — pull request #186 by jordanlev (2011-11-11 00:51:18+00:00)
Title: Updating View::url function to be more robust

Updating View::url function with 3 functional changes:
1) Now works for blocks that are in the global scrapbook (by using Page::getCurrentPage() to determine current page instead of $this->c)
2) Now works even if the given url/path has a leading slash
3) Now excludes the home page (because it will mess up nav menu logic, and isn't needed because every page is always under the home page so no need to ever call this function for it).