remove id param from home and history urls
improved handling of broken actions