Custom Button Defaulting to Product Page

Has anyone seen where a custom button with a defined URL is defaulting to the product path?

Example - button is directed to “link” but when clicking the button you are directed to

www.mywebsite.myshopify.com/products/www.mywebsite.com

Button is being displayed as a liquid block on the default product template. The liquid block has the following code.


<a class="mb-1 push-btn theme-button theme-button w-full" a href="link here"><span class="push-btn-surface w-full">
<span>Find Us Near You</span></span></a>

Screen Shot 2022-08-22 at 9.09.20 PM

Hey @RidicBen ,

I can see that this issue has been resolved in your recent support ticket.

What we did is we used a relative link for the button url, so the code looks as shown below:

<a class="mb-1 push-btn theme-button theme-button w-full" href="/pages/store-locator"><span class="push-btn-surface w-full">
<span>Find Us Near You</span></span></a>

I hope you have a great week.