0

I am trying to open a primary tab from another primary tab where the url is a flexi page. It is refreshing the URL of new tab but not opening another tab which is my requirement. Using workspace api to open tab using URL.

subTabHelper: function(Component, strURL) {
    const objWorkSpaceAPI = Component.find("workspace");
    if (objWorkSpaceAPI) {
        const tabUrl = strURL;
        objWorkSpaceAPI.openTab({
            url: tabUrl,
            focus: true
        });
        }
}
  • use openSubtab instead of opentab – cloudZigZag Mar 13 at 11:05
  • can you provide sample tabURL? Also the current tab and the new tab you are opening are same? – Pranay Jaiswal Mar 13 at 11:53
  • URL is a app flexi page with some parameters added. /lightning/r/flexipageName/parameters – Narasimha G Mar 13 at 14:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.