Inappbrowser strange issue

Hey guys,
Having a strange issue with inappbrowser that maybe someone can help with. Basically after opening a page with inappbrowser then navigating back to the app it will try to open inappbrowser pages with regular links when it normally wouldnt had inappbrowser not been opened.

Bit of an odd

Turned out to be because my inappbrowser code was targetting all anchor tags and when navigating back from the page it was keeping the javascript loaded in which I didnt realize happened.