aura:locationChange doesn’t work in Internet Explorer?

I have the following lightning component, TestUrlChange:

TestUrlChange.cmp

<aura:component implements="flexipage:availableForAllPageTypes" access="global" >
    <aura:attribute name="hash" type="String" />
    <aura:handler event="aura:locationChange" action="{!c.locationChange}" />

    <ul>
        <li><a href="#tab1">Tab 1</a></li>
        <li><a href="#tab2">Tab 2</a></li>
    </ul>

    <div>{!v.hash}</div>
</aura:component>

TestUrlChangeController.js

({
    locationChange: function(component, event, helper) {
        component.set("v.hash", event.getParam('token'));
    }
})

… and a TestApp.app just in case.

<aura:application extends="force:slds">
    <c:TestUrlChange />
</aura:application>

Above code works just fine in Chrome.

Chrome

But in IE11, the handler isn’t invoked.enter image description here

Answer

Attribution
Source : Link , Question Author : Jan Julian , Answer Author : Community

Leave a Comment