Allow handling of back/forward buttons in browser when running with prefix (i.e. as /discourse)

Allow handling of back/forward buttons in browser when running with prefix (i.e. as /discourse)