Set a url for app


#1

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.


#2

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

<base href="/app">


#3

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)


#4

Hi LoLStats,

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