Refresh(reload url) of one page url then url go to other page url in ionic. Why it is happening?

In app.module.ts
IonicModule.forRoot(MyApp, {}, {
links: [
// { component: LoginPage, segment: ‘’ },
{ component: HomePage, segment: ‘movies’ },
{ component: ViewPage, segment: ‘movie/:id’ }
]
})

and ionic info
cli packages:

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.6
Cordova Platforms  : none
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v8.9.3
npm  : 5.6.0
OS   : Windows 10

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro

Going to need a little bit more context.

What do you mean by ‘refresh’?

After login we have get url in browser like “http://localhost:8100/#/movies” then we try to reload url in browser then url has changed like “http://localhost:8100/#/movie/:id”.