Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6780555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:31:11+00:00 2026-05-26T16:31:11+00:00

I have a very simple .NET MVC3 project set up using jquery mobile for

  • 0

I have a very simple .NET MVC3 project set up using jquery mobile for rendering to mobile devices.

I have one page…

www.mydomain.com/landingpage

and on this page I have a link to another page:

www.mydomain.com/homepage

My problem is this, the link from landing page works fine – loads, animates and returns the content correctly.

However once on the homepage, all the homepage links no longer work. Homepage contains about 3 different jquery mobile “pages” and trying to link to them is not working. This is due to the hash format, it’s still showing something similar to:

www.mydomain.com/landingpage#homepage

So when link is generated it looks something like this:

www.mydomain.com/landingpage#homepage

Then when I link to one of the other pages similar to this:

a href="#homepage2">Homepage 2</a>

Clicking the link takes the user back to the initial landing page and updates the URL to something similar to:

www.mydomain.com/landingpage#homepage2

But I’m fairly sure it should look more something like this:

www.mydomain.com/homepage#homepage2

I can get it working correctly by using rel=”external” on the first link but I’d like to avoid this as it reloads the page and you lose page transition animation etc.

Any ideas much appreciated 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:31:11+00:00Added an answer on May 26, 2026 at 4:31 pm

    For anyone stuck with same problem, this fixed it for me:

    I manually set the data-url attribute on each jQuery mobile “page” element (the div with data-role=”page”). In turn, this forced a refresh of the URL hash of the pages when doing post-backs.

    Not sure of the exact cause but I have a feeling because it is posting back to the same page but server is returning a different page, the URL hash gets a bit confused.

    So just manually set the data-url attribute correctly and when the page posts back and the next page is loaded, correct URL hash will be updated.

    So for example:

    <div data-role="page" id="pageId" data-url="/Page/URL/Here/">
    

    Little bit tricky to explain so if anyone needs a bit of help feel free to contact me directly! RC2 has been released since I initially posted this so I’m also unsure of what changes are included.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm playing around with using ASP.NET MVC3 and have a very simple site that
I have a very simple asp.net mvc3 app that uses jquery::getJSON to call into
I have a very simple ASP.Net page that acts as a front end for
We have a very simple ASP.Net page for uploading a file to our webserver.
I have a very simple VB.net Windows Service written using VS.net 2008. The program
I have a very simple setup, a whole solution that builds using .NET 3.5.
I have a very simple ASP.NET project. It consists of two pages. The first
I have a very simple .net application for testing SMTP on .net. But i
We have a very simple ASP.NET web application comprising mostly static content and a
I have a very simple windows Service that is developed in vb.net 2008. When

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.