Router: problem with /path/subpath

I have setup when I open ‘/’ (root) of app it redirects to /tabs/search, when I open /tabs it redirect to /tabs/search, then I press F5 (reload) or directly input /tabs/search it fails with 404. What need to be fixed?

app-routing.module:

const routes: Routes = [
  {
    path: '',
    loadChildren: () => import('./pages/tabs/tabs.module').then(m => m.TabsPageModule),
  },
  {
    path: 'login',
    loadChildren: '../login/login.module#LoginPageModule'
  },
  // ...
  {
    path: '**',
    redirectTo: 'login'
  },

Perhaps your hosting environment.

http://localhost:8100/tabs/search now opens ‘white screen’:

GET http://localhost:8100/tabs/cordova.js net::ERR_ABORTED 404 (Not Found)

in the Android same problem

Not sure what you changed based on @rapropos suggestion, but are you deploying this to a web server/hosting provider or deploying to a native app?

mobile application Android, iOS