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

  • Home
  • SEARCH
  • 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 6640143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:38:19+00:00 2026-05-25T23:38:19+00:00

I posted a question earlier about why django redirect was not working correctly, but

  • 0

I posted a question earlier about why django redirect was not working correctly, but quickly remove it because I discovered the when I took jquery mobile out of the equation, django is working fine.

I have a form which I am submiting and varifying in django in the usual manner. This is working fine. The problem comes when after the form is submited I want to redirect to a different url.

When I do this without jquery mobile, I simply user:

response("myurl")

which works fine, but When I use jquery mobile I am redirected to the correct page, but the browser url does not change.

This causes all manner of problems because I am using variables in my django url regex, and without the correct url nothing works correctly.

Has anyone else had a similar problem when using jquery mobile and django together? If so what did you do about it? Failing that, can anyone shed any light on why this is happening?

  • 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-25T23:38:19+00:00Added an answer on May 25, 2026 at 11:38 pm

    After a lot of goggling I ended up back at a question on stackoverflow which I had not spotted as it was only tagged as a jquery question and did not mention django in the title either.

    error-with-redirects-in-jquery-mobile

    This suggests specifying data-url to set the url.

    In my websites base template file I setup the data-url with a code block marker like this:

            <div id="page" name="page" data-role="page" data-url="{% block data-url %}/root/{% endblock %}" class="type-interior">
    

    then in the individual page templates I am then able to set to specify the url like this:

            {% block data-url %}/root/myurl/{% endblock %}"> 
    

    I am not sure if this is the optimal solution as of course this means that I have to include the data-url block in every template, but it does work

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

Sidebar

Related Questions

I posted about this sort of earlier, but I am not sure how to
I posted a similar question earlier, but it was deleted because I felt I
I posted a question about this earlier, but I have more information now and
I've posted this question in gis.stackexchange earlier but I'm not sure if that was
I have posted a question earlier but unfortunately I did not get any useful
I posted a question earlier about stopping all sounds in a swf. Now, to
I posted a question re LDAP account management, but after exploring this, it's not
I posted another question earlier about getting the arguments from a context menu App.
I ask because my buddy posted a question earlier on How to resolve issue
I'm working from a question I posted earlier ( here ), and trying to

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.