javascript - %2f instead of slash in ReturnUrl -


i have mvc 4 website has log-in mechanism follows:

i have 2 pages must logged in access them.

if click on 1 of them , you're not logged in adds following url: /sign-in?returnurl=/somepage/ . other page adds ~/sign-in?returnurl=%2fpagename , breaks redirect.

as solution modified url pushstate , replaced %2f / , works. works browsers support html5.

i checked web.config usual problems (deny users ="*" , key="enablesimplemembership" value="false" , others) seems fine.

also redirect works fine on localhost on browsers on server(azure) works chrome , firefox, not ie9+.

it doing redirect in 1 of controllers. in end double encoding url: %202fpagename%202f .


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -