Click here to Skip to main content
15,922,325 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
I added a page displaying Google map in basic MVC4 mobile web app.

here is my url.. http://zenith.iwaywiz.com:8000/MobApp/

this works fine in desktop browser but when checked in mobile it gives me trouble when I click on Contact tab the URL is

zenith.iwaywiz.com:8000/MobApp/Home/Contact

now when I click on Map tab the URL changes to

zenith.iwaywiz.com:8000/MobApp/Home/Contact#/MobApp/Home/Map

instead of

zenith.iwaywiz.com:8000/MobApp/Home/Map

This problem occurs only for this page and only in mobile

Can anybody please give me a solution I'm very new to MVC4 and mobile web development appreciate suitable answers... thank you...
Posted

1 solution

The URL connected with that link is likely "#/MobApp/Home/Map" instead of "/MobApp/Home/Map" or "../Map". Search for that, and replace it.
 
Share this answer
 
Comments
abkcareer 6-Aug-12 9:40am    
thanks for replying...
well, below is the code that has links to other pages from home page

<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>
<li>@Html.ActionLink("Map", "Map", "Home")</li>

this is how in every other page links provided.
But URL including # only for Map page and it's so annoying
I wish, I could get solution before I break my head

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900