QR code URL opens Safari but does not load URL

Hi,


When accessing the camera from the lock screen to scan a QR code (which links to a website) I'll be prompted to unlock my phone to open Safari. When Safari is launched it just reloads my last active tab, it doesn't launch the URL from the QR code. However, if I first unlock my phone and then proceed to scan the QR code it does actually open Safari and load the URL.


Is this a security measure? I couldn't find any information about it.


I'm using a iPhone 6 running iOS 11.2.6