IndexTable Link to Shopify admin product details works, but back button's href missing search params

Hi,

This is an in-progress Polaris IndexTable product page in my Shopify app extension (built with the remix template):

In each row, I have a primary data link to the shopify:admin/products/<id> product details page, which works great:


Once the embedded admin product details page opens, the included back button...

![shermie_4-1712461952910.png|287x41](upload://yv0ZkPd7Pz52eRygOwsXP6fn5rx.png)

...returns to my IndexTable page as expected. However, the issue is that the back button URL is missing my search-params.

I use search-params for the selected filter tab, pagination and sorting. Just like the Shopify admin product page itself. Notice the search-params in the URL of the Shopify version of this page:

![shermie_1-1712460503874.png|653x705](upload://pJRIAOHlSpZAcxbNTZjlGw1er3P.png)

And you can see that the same search params are in the admin back button's url, via the browser's hover status line:

![shermie_2-1712460775520.png|795x605](upload://5XDAWGjy1MALkmgbI7M2KEJEaTo.png)

So of course, when you click the back button, it returns you to the list of products in the same selected-tab-filter/pagination/sorting state as before.

However, in my app, you can see that the Shopify admin back button's URL has been stripped of search params:

![shermie_3-1712461327542.png|798x623](upload://zc1eBi0Hp8duswavIhFXePnI0Vd.png)

On the other hand, the browser back button works correctly. It goes back to my page, with the search-params for my page included.

As the embedded Shopify admin product details page is not in my control, I can't think of a way to fix this from my side. At least not without doing some ugly work-arounds.

Please advise if this is a bug, or if I'm missing something.

Thanks!
1 Like