Darcy
Darcy

Reputation: 13

jQuery and MVC3 Razor producing strange URL on Android browsers

I'm working on an MVC3 (with Razor) / jQuery Mobile application and am having trouble navigating back on many areas of my application when using an Android browser (or user agent).

The problem appears to be in the URL that gets created with the @Url.Action method. On iPhones and PC browsers the URL looks like this:

<li class="cl"><a href="/CustomerLookup/Search?ep=Home&amp;t=8cf20faa37155b8"><span>Customer Lookup</span></a></li>

but on Android browsers or in Chrome using the Android user agent the URL looks like this:

<li class="cl"><a href="/(F(Kdqb5nTlCaTP52GkHZ76P50MXAvnUCexKHt0ucPisYJ0iubQ3jwKk6-tiqxAtGVdBmiOgq4mW1-ZF3XUZJc5Y9BHnXVa2fWeIyFE5BxUwmZRhPjbm4L8AWDeymlpAcYJ9ABEPfu5i5_JmvAFinX8y9Jnwj0YeQRnpx_NCVjGqEcuFB-0g5NYcOI_WAsixNP90))/CustomerLookup/Search?ep=Home&amp;t=8cf20fb0b1db618"><span>Customer Lookup</span></a></li>

When I click this link I get an error:

Uncaught Error: Syntax error, unrecognized expression: data-url='/(F(Kdqb5nTlCaTP52GkHZ76P50MXAvnUCexKHt0ucPisYJ0iubQ3jwKk6-tiqxAtGVdBmiOgq4mW1-ZF3XUZJc5Y9BHnXVa2fWeIyFE5BxUwmZRhPjbm4L8AWDeymlpAcYJ9ABEPfu5i5_JmvAFinX8y9Jnwj0YeQRnpx_NCVjGqEcuFB-0g5NYcOI_WAsixNP90])/CustomerLookup/Search?ep=Home&t=8cf20fb0b1db618')

I'm now unable to navigate back to the original page.

Any ideas?

Upvotes: 1

Views: 166

Answers (1)

bobek
bobek

Reputation: 8020

It looks like you have cookies disabled on your android and session is being thrown into your url.

Upvotes: 1

Related Questions