2👍
✅
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
Source:stackexchange.com