Fixes subrouting and catchall handler for the webapp