Search code examples
extjsextjs4extjs4.1

ExtJS: get current URL in ExtJS style


Title says it all: how do I get the current URL using ExtJS?

There are already answers about fetching the URL using document.URL and window.location.pathname. However, since I'm using Ext.Object.fromQueryString in the same script, I'm looking for a similar ExtJS method that returns the current URL.

I'm on ExtJS 4.1.3.


Solution

  • No there isn't something like this in ExtJS, and if there was a function like that, under the hoodcap they'd also do a window.location