{"action":"closed","issue":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/4145","labels_url":"https://api.github.com/repos/jekyll/jekyll/issues/4145/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll/issues/4145/comments","events_url":"https://api.github.com/repos/jekyll/jekyll/issues/4145/events","html_url":"https://github.com/jekyll/jekyll/issues/4145","id":117023961,"number":4145,"title":"page.url drops \".html\"","user":{"login":"ochrons","id":629483,"avatar_url":"https://avatars.githubusercontent.com/u/629483?v=3","gravatar_id":"","url":"https://api.github.com/users/ochrons","html_url":"https://github.com/ochrons","followers_url":"https://api.github.com/users/ochrons/followers","following_url":"https://api.github.com/users/ochrons/following{/other_user}","gists_url":"https://api.github.com/users/ochrons/gists{/gist_id}","starred_url":"https://api.github.com/users/ochrons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ochrons/subscriptions","organizations_url":"https://api.github.com/users/ochrons/orgs","repos_url":"https://api.github.com/users/ochrons/repos","events_url":"https://api.github.com/users/ochrons/events{/privacy}","received_events_url":"https://api.github.com/users/ochrons/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-15T22:34:47Z","updated_at":"2015-11-27T14:43:57Z","closed_at":"2015-11-27T14:43:56Z","body":"I have a recursive doc nav generator and after upgrading to Jekyll 3.0.0 the `page.url` seems to drop the `.html` at the end of the URL. Had to resort to this workaround (remove `.html` from the comparison target) to get it working ok.\r\n\r\n```\r\n{% assign navurl = page.url | remove: 'index.html' | remove: '.html' %}\r\n<ul>\r\n    {% for item in include.nav %}\r\n    <li>\r\n        <a href=\"{{ site.baseurl }}{{ item.url }}\">\r\n            {% assign itemurl = item.url | remove: '.html' %}\r\n            {% if itemurl == navurl %}\r\n            <b>{{ item.text }}</b>\r\n            {% else %}\r\n            {{ item.text }}\r\n            {% endif %}\r\n        </a>\r\n    </li>\r\n    {% if item.subitems and navurl contains item.url %}\r\n      {% include docnav.html nav=item.subitems %}\r\n    {% endif %}\r\n    {% endfor %}\r\n</ul>\r\n```"}}