changed redirect url to not include 'index'