         configuration.userContentController = userContentController
         
         self.webView = WKWebView(frame: self.view.bounds, configuration: configuration)
+        self.webView.restorationIdentifier = "WikiWebView"
         self.webView.setTranslatesAutoresizingMaskIntoConstraints(false)
         self.webView.allowsBackForwardNavigationGestures = true
         self.webView.UIDelegate = self;

        var browser = IDMPhotoBrowser(photos: [IDMPhoto(filePath: self.wiki.localImagePath(path))])
        browser.usePopAnimation = true
        self.presentViewController(browser, animated: true, completion: nil)
    }
}


    
    var pendingPageName: String?
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
