Shopify polaris and react-router-dom linkComponent prop on AppProvider

Highlighted
Tourist
6 0 1

I am struggling to get the Link component from react-router-dom to work with the linkComponent prop on AppProvider.

 

I have created a code sandbox that shows the issue I am having https://codesandbox.io/s/young-bush-kno4g.

 

If you click on 'New Page' in the navigation the new page content loads as expected. But if you then try to navigate back to the home page using the navigation, nothing happens.

 

Another issue is that the theme link in the top bar becomes relative.

 

Any help would be greatly appreciated, thanks.

0 Likes