redirects to mainpage rather than /add after submitting a URL now