I am trying to redirect on the a href click to a custom visualforce page in lightning.
<a href=# onclick={navigateto###} target="_blank"></a>
navigateto###() {
console.log('Inside navigate to home Tab');
// Navigate to the Account home page
this[NavigationMixin.Navigate]({
type: 'comm__namedPage',
attributes: {
pageName: 'FileVie###',
},
state: {
'fileId': '0685D00#####'
}
});
}
But as standard way its apeending s to it. https://abc.force.com/s/FileVie###?fileId=0685D00#####
Is there any chances to remove s or any other way to redirect to a custom visualforce page with redirect. I have also used , custom URL however it is appending the url on the same community page not in a separate tab:
this[NavigationMixin.Navigate]({
type: 'comm__namedPage',
attributes: {
pageName: 'https://wwww.salesforce.com'
}