Hello Baonguyen,
I had the kind of similar situation where I need to navigate to standard object listview and the Menu type is Community Page..
URL parameter in the Napili Community is very confusing and I have a better workaround to resolve the issue.
Basically, I have to create this thing for one of my project best ERP software in Kolkata
1- > Create a apex controller to get the logged in user profile
@AuraEnabled
public static Profile getLoggedInProfile() {
Profile loggedinUser = [SELECT Name FROM Profile WHERE Id = :UserInfo.getProfileId() LIMIT 1];
return loggedinUser;
}
2-> Create a Lightning Component and fire the event on page load/Refresh with Init event that uses force:navigate to object based on the Id from Step 1. This takes you to the Desiser Profile Page.
retunProfile: function(component, event, helper) {
var action = component.get("c.getLoggedInProfile");
action.setCallback(this, function(response) {
Var state = response.getState();
if (state === "SUCCESS") {
Var loggedInUser = response.getReturnValue();
Var navEvt = $A.get("e.force:navigateToSObject");
navEvt.setParams({
"recordId": loggedInUser.Id,
"slideDevName": "detail"
});
navEvt.fire();
}
});
$A.enqueueAction(action);
}
3-> The component will be kind of
<aura:component implements="forceCommunity:availableForAllPageTypes access=“global” >
//You may add other desired attributes
<aura:handler name=“init” value=“{!this}” action=“{!c.retunProfile}” />
</aura:component>
4-> Goto Napili Community Builder select a newly created component from the drop-down menu and publish.
I hope this should solve your issue.
Hope this will help you properly.