How we can send hmac address to laravel route in public app

Shopify Partner
22 1 3

I am trying to send hmac address with my route in my laravel shopify app. I am not using any package to create app. I have used default navigation feature of embed app. when I click on navigation it goes to route and perform its functionality but when I try to use same route from my custom button it give me error as it it not getting default params send by shopify. Please check the below image, The Read marked links are working fine as it comes through shopify, but the buttons are now working on same route. Please help me fix this. Capture.PNG

0 Likes
Highlighted
Excursionist
22 3 4

I'm not sure if i understood it correctly, but i do this "linking" with hmac simply concatenating like this:

 

<a href="/first/second/third/?<?= $_SERVER['QUERY_STRING'] ?>"  >

 

0 Likes
Highlighted
Shopify Partner
22 1 3

Hi,
Thanks for your reply.
It works but when I click on button it load the view without changing the URL in address bar. When I try to reload the page it load the previous view.
suppose I have opened "https://<store_address>/admin/apps/<app_name>/home" page.  and when I click on button to open another page suppose "https://<store_address>/admin/apps/<app_name>/about" then it load the my about view but do not change the url in address bar.

do you understand what I am trying to say?

0 Likes