Set a url for app

Is there a way to set a base url on AppModule/AppComponent? I want my app to always be localhost:8100/app/?
I know I can set one with IonicPage, but since AppComponent does not have IonicPage decorator, I don’t know how to do it.

Have you tried setting the base href in your index.html

<base href="/app">

1 Like

Kind of complicated, I don’t have access to the index.html
(I am working on ionic core atm, creating a page to open all of the e2e apps, but I need a url for them so it will be cleaner)

Hi LoLStats,

I tried this base href in index.html. But no lcuk.