* fix popstate detection for safari when basepath is present * Add test case Co-authored-by: JJ Kasper <jj@jjsweb.site>