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 8310375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:26:15+00:00 2026-06-08T19:26:15+00:00

I use a NavigationView as the root panel. And the thing I try to

  • 0

I use a NavigationView as the root panel. And the thing I try to accomplish is to push views onto my root panel as the user navigates deeper into my application, and pop them of when the user goes back.

Here is a simple examples showing my problem: I have one type of view showing some entry details.

Ext.define('MyApp.view.EntryDetails', {
    extend: 'Ext.Panel',
    xtype: 'entrydetails',

    config: {
        tpl: '<div>{id}</div>'
    }   
});

I also have a controller configured to listen to the following route: “entry/:id”, and push a new entrydetails view onto the navigationstack (NavigationView) when this route matches.

Ext.define('MyApp.controller.EntryDetails', {
    extend: 'Ext.app.Controller',
    config: {
        routes: {
            'entry/:id': 'showEntry'
        },
        refs: {
            navview: 'mynavigationview'
        },
    },

    showEntry: function(id){
        this.getMain().push({
            xtype: 'entrydetails',
            data: {id:id}
        });
    }
});

Okay, this is working fine. Now lets first assume I navigate to: index.html#entry/1. This will push a new view onto the stack, just as I want. I then click another link index.html#entry/2. Another view is pushed onto the stack, this is also the intended behavior. Now the problem appears when I click the BROWSERS back button. This changes the url to index.html#entry/1 and pushes yet another view onto my stack. I wanted to pop a view instead of adding another. If I press the toolbars backbutton the view is popped just as I wanted, but this is not the case with the browsers back button.

I do understand why this is happening: The Sencha touch framework do not know if the url change was due to me pressing another link with the same url as the previous browser history url, or if I was pressing the back button on my browser. And all my code knows is that is should push another view onto the stack when it sees an url change to “entry/:id”.

What is the best way to solve this problem. How do I detect that the back button of the browser was pressed and the pop a view from my navigationview.

I have thought of checking if the changed url was simular to a view further down on my navigation stack, but I’m not sure if that’s the way to do it.

Any help / discussion on the topic is appreciated!

  • 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-06-08T19:26:17+00:00Added an answer on June 8, 2026 at 7:26 pm

    I had a similar issue with the NestedList component. What I ended up doing was overriding the onBackTap, canceling it, and then redirecting to the appropriate URL. I’m guessing there is some way to apply this technique to the NavigationView as well. I don’t know if this actually the right way to do it, but it was the only way I could get the hardware and software back buttons to play nicely together.

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

Sidebar

Related Questions

I make iphone application. I use for root controller tab bar controller. One of
Use Case Show a photo uploaded by the user in a square box with
use Control::CLI; $cli = new Control::CLI('SSH'); $cli->connect(Host=>'10.10.10.10',Username=>'user',Password=>'pwd'); $cli->waitfor('>'); $cli->print('Show XXXXXXXXXXXXXXXXXXXX| grep Active'); @f=$cli->waitfor('>'); print
Use case: User launches app The user enters google password The app lets the
Use Case: End-User searches for something and an ArrayCollection is returned with Result objects.
Use case: 3rd party application wants to programatically monitor a text file being generated
Use: The user searches for a partial postcode such as 'RG20' which should then
Use case: User clicks a link, a modal window is displayed containing one big
USE Kudler_FF INSERT INTO Job_Tbl (JobTitle, JobDescription, ExemptionStatus) VALUES ('Accounting clerk’, ‘Computes, classifies, records,
USE AdventureWorks2008R2; GO INSERT INTO myTestSkipField SELECT * FROM OPENROWSET(BULK 'C:\myTestSkipField-c.dat', FORMATFILE='C:\myTestSkipField.fmt' ) AS

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.