ShadowAya/anchor-card

URL Opening New Browser When Clicked

Closed this issue · 2 comments

I'm certain it's me :) I added an anchor-card lower down on a dashboard page called "outdoors". At the top of the same page a created a button card with the tap option "URL" using the path of "dashboardpage?anchor=outdoors". When I click on the Outdoors button on my phone on the HA companion app (or in browser), it opens a (new) web brower, instead of just scrolling down. Ideas?

I've also tried some variations of the url, like:
"?anchor=outdoors"

But, it always opens a new browser tab.

Answered my own question! Instead of using the button card - URL, use the button card - Navigation with the added anchor. Ie. /lovelace-dashboard/dashboardpage/?anchor=outdoors