fix the this: https://trello.com/c/Bgun5Hhe/340-global-search-redirects-to-wrong-page-for-guides

The dom api is stupid: http://stackoverflow.com/questions/3745515/what-is-the-difference-between-substr-and-substring

Do you think the substring bit is even necessary though? either way it's fine