Sorted out router, reconstructing app from url on load