App reviews, troubleshooting, and recommendations
My js breadcrumb links always open in a new tab. How can I force them to open in the same tab?
My code looks like this:
import createApp from "@shopify/app-bridge"; import { Redirect } from "@shopify/app-bridge/actions"; const host = Buffer.from(`${shop}/admin`).toString("base64"); const app = createApp({ apiKey: fConstants.SHOPIFY_API_KEY, host: host, }); const redirect = Redirect.create(app); const url1 = Redirect.Action.ADMIN_PATH; const url2 = "/products/"; redirect.dispatch( url1, url2 );
I tried these two code changes, but to no avail
const app = createApp({
apiKey: fConstants.SHOPIFY_API_KEY,
host: host,
forceRedirect: true
});
redirect.dispatch( url1, {
path: "/products",
newContext: false,
});
Thanks! jb
Solved! Go to the solution
This is an accepted solution.
I think I got it!
const url2 = "/../../products/";
<Page
title={`Page title`}
backAction={{
content: `Return to products list`,
url: "/../../products/",
}}
>
This is an accepted solution.
I think I got it!
const url2 = "/../../products/";
<Page
title={`Page title`}
backAction={{
content: `Return to products list`,
url: "/../../products/",
}}
>
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025