PWA deeplinks problem

Hello there!
I started developing my first PWA and I have a little problem.

When i open my app the URL is: localhost:8100 and its HomePage.
Then when I push another page url changes to localhost:8100/#/test which is good but when I click back I see HomePage but URL stayd localhost:8100/#/test.

How can I fix it?
Best Regards!

Found solution by myself.
In app.component.ts:

  rootPage:any = 'home';