Matt Dean I have tried using '_self', window.location.replace, window.location.href, window.location.assign all did not work for opening the link in the same tab. '_self' is opening current page what is opened in website but not the respective page of the link after clicking on the link. Kindly provide some other solution.
Sweta I believe this topic may not currently align with the focus of this blog (I suggest conducting research to determine if others have attempted this with the same JS framework you are using). Additionally, there are multiple factors that could impact the desired functionality you are seeking. It would be advisable to incorporate console logs and debugger statements in order to gain a thorough understanding of any deficiencies, whether they may involve errors or incorrect logic.
Matt Dean thanks a lot for your immediate response. will check the errors in console since it's showing Typeerror: cannot read properties of null for navigation.
Sweta
Kindly upload the code for opening button in same tab with proper navigation of respective page of button selected