1 Reply Latest reply on May 19, 2013 9:53 PM by Kutir Mobility

    Weird behavior of back button

      I have the following controller

       

      class TodoController < Rho::RhoController
        include BrowserHelper
        def index
           # make async request with callback to do_callback
           render :back => url_for(:controller => :Home, :action => :index)
         end
      
        def new
           render :back => url_for(:controller => :Todo, :action => :index)
         end
      
        def do_callback
           # do some update
           WebView.execute_js("....")
        end
      end
      

      If pressing back button in New Todo view, the app navigate to the view of Todo Index. However, if I press back again, it not navigate to the Home Index view, but returning to the New Todo view.

      I'm using Rhodes 3.5.1. Please help if you know anything about this problem.

       

      Thanks very much.