url redirect fixes to handle weavver hosted as http://localhost/weavver vs at the root http://localhost/