Try to use “shellHash” property instead of “semanticObject” like below:--------------------------------------------------------
sap.ushell.Container.getService("CrossApplicationNavigation").toExternal({
target: {
shellHash: "#"
}
});
--------------------------------------------------------