Jared
Jared

Reputation: 6060

jQuery Mobile showing incorrect URL

On a MVC3 project I'm working on whenever I do a redirect to action on the controller the URL that is shown in the browser is the original request. Not the redirected one. Has anyone seen this or know of a workaround for it?

So for example. I can click a link with a href that equals...

http://www.test.com/account/LogOut

Which on the controller will redirect to the homepage, but once I'm logged out and the homepage is shown...the url still shows http://www.test.com/account/LogOut

This is causing some quirky behavior with a couple of other things that I've got going on.

Upvotes: 1

Views: 289

Answers (1)

Jorissu
Jorissu

Reputation: 313

You should use the attribute 'data-ajax="false"' in your logout link.

Upvotes: 2

Related Questions