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


Hello there.

I have a website, let’s say its

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:

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

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 “”.

What can I do to make it work? Thanks.


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.