pages and snippets behave the same regarding their permalink (fix issue #831)
less similar code in the link_to and path_to liquid tags #codeclimate