开发者

jQuery Mobile: Closing a dialog navigates back to the wrong page

开发者 https://www.devze.com 2023-03-19 13:56 出处:网络
I have a form that when posted redirects to another page. This page then presents a series of links, each one opening a dialog box.

I have a form that when posted redirects to another page. This page then presents a series of links, each one opening a dialog box.

My issue is that when I close a dialog box jQuery mobile navigates back to the wrong URL - not to the one from where the dialog was called, but the one before.

Here's some code:

The page that is served through the form redirect manually specifies the URL as it is the product of a redirect.

<div data-role="page" data-url="/call/StockQuestions">

When on this page the URL looks as follows:

http://localhost:60887/#/call/StockQuestions

The link to the dialog looks as follows:

<a href="/C开发者_JAVA百科all/EditStockSummary/529" data-rel="dialog" class="ui-link">Set Stock Detail</a>

Clicking this opens a form up. When I click Cancel jQuery Mobile navigates back to:

http://localhost:60887/#/Call

Anyone have any ideas what I am doing wrong here?

Thanks


Try updating to the most recent version of JQuery Mobile. I had similar issues and an update sorted it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号