Check dynamic segment in @ionicPage()

Hello , i want to check dynamic segment in @ionicPage({ segment:’:url’}) there is any way that ionic provide to check the url contain some string or not because in my case when i am trying to hit url from PWA then this will redirect to same page if the segments are diffrent please tell me how to prevent this or make some hack to redirect it to the same page again and again …