I want to understand if there is any way to fetch the current lightning component url in salesforce and navigate to it
I am using
window.location.href = window.location.pathname;
in my lightning component for redirection, but it is taking me to classic instead of the lightning view