If you only want to obtain which page the webview has navigated to, you can add the following WKNavigationDelegate method to obtain it:
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
print("the web view has navigated to: \(webView.url?.absoluteString ?? "")")
}