Route Change
forceCommunity:routeChange
Indicates that a page's url is changed.
For Use In
Experience Builder Sites
forceCommunity:routeChange is fired when a page’s URL changes. Custom Lightning components can listen to this system event and handle it as required—for example, for analytics or SEO purposes.
This example listens to the event and updates a counter that denotes the number of times the route has changed.
This client-side controller updates the counter.
This event is supported in Aura-based Experience Builder sites only.
