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/",
}}
>
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023