Fix URL messing up when clicked on model buttons etc