How to generate href using ionic navigation?

i know the best practice is to not navigate with urls and instead use push and pop, however i want to have a PC website and a PWA.

in pc and pwa - if it changes the url - its usually an <a> with an href, not a button (for example so users could open in a new tab if they wish,seo etc…)

i was planning to create an <a> with a correct href (and then event.preventDefault() it and use push and pop)… but how do i get the correct url?
i noticed deeplinker has a “createUrl” function but its marked as an internal method…

what am i supposed to do?
any advice would be appreciated.