One of the reasons I left android was the inconsistency of the back button. Sometimes it would even take you out of the app you were in to the previous app. If you were in the browser it would never do that though. Maybe they made it more consistent?
(Almost?) Every app in iOS has the “swipe from left” to go back.
There are a few apps (ironically, YouTube is one) that don't behave correctly, but the back button is supposed to take you to the previous screen. So if you opened that link from another app, it should take you there.
There is a new Android feature trying to fix that "predictive back animations", It shows you an animation when you are exiting the app using the back button/gesture.