this commit should be merged instead of #1138
some more improvements with canonical urls
trailing slash removed from all the urls
added 301 redirection to remove end /
Merge pull request #1163 from conejoninja/search_url_fixes

this commit should be merged instead of #1138