fix redirect not working with datepicker
use html5mode for url and fix routing
fix wrong ajax call on home page (404)