Fix pagination links and apply HTML5 url configuration