I'm currently developing a Sencha web application and I need to find a way to remove the "#" from the URL that appears after "index.html".
Every time I navigate to a different screen, I notice that the URL looks like this:
...../index.html#Controller/view..
. It's important for me to eliminate this "#" character.
Although I attempted to include the code in each view's constructor, it didn't produce the desired result...
var url = window.location.href;
if (url.indexOf('#') != -1) {
url = url.substr(0, url.indexOf('#'));
}
window.location.assign(url);
This project utilises Sencha version 1.1.1 along with Javascript. No external frameworks such as PhoneGap have been incorporated.