Jquery multipage with django

Jquery multipage with django

Hi,
Using django with jquery populating links like.
<a href="#popupItem{{ item|key:'ITEMNUM' }}" data-transition="pop">
and populating pages using.
<div data-role="page" id="popupItem{{ item|key:'ITEMNUM' }}">

I cant get this multi pages working for me.
Everything seems to be fine,
produced links is looking like.
/sale/detail/02_O1_00000036#popupItem10
and appropriate pages are created.

if I copy and paste the source html into a seperate html file, it works fine.
But then, produced links differs as follows.





/sale/detail/02_O1_00000036.html#popupItem10
see the difference. only the .html part is different
How can I workaround this problem.
thx.