Ionic 3/4 - Open a page with absolute URL?

#1

Hello there.

I have a website, let’s say its

https://www.example.com

I have a separate APP, which is not on the website, but on play Store/app Store. I have set HomePage, in a lazy loaded way, as the rootPage of my APP:

https://www.example.com/home

I want to be able to go to SecondPage by clicking on a link like this:

https://www.example.com/second

I know I have to set the segment of the Component and all that stuff, but still, it only works with “/second” and never with “https://www.example.com/second”.

What can I do to make it work? Thanks.

#2

Angular/Ionic4 has base href in the index.html, which is why it always refers to relative path. U can navigate through absolute path by using href in anchor tag I guess.