clean up url setting so it works locally and on github pages