 
 extension URLBar: AutocompleteTextFieldDelegate {
     func autocompleteTextFieldShouldBeginEditing(_ autocompleteTextField: AutocompleteTextField) -> Bool {
-        
-        setTextToURL()
-
-        autocompleteTextField.highlightAll()
+
+        setTextToURL(displayFullUrl: true)
         
         if !isEditing && inBrowsingMode {
             present()

            components?.password = nil
            fullUrl = components?.url?.absoluteString
            truncatedURL = components?.host
            urlText.text = isEditing ? fullUrl : truncatedURL
            truncatedUrlText.text = truncatedURL
        }
    }

        updateLockIcon()
        updateUrlIcons()
        let _ = urlText.resignFirstResponder()
        delegate?.urlBarDidDismiss(self)
        setTextToURL()
        
        cancelButton.animateHidden(true, duration: UIConstants.layout.urlBarTransitionAnimationDuration)
        hideCancelConstraints.forEach { $0.activate() }
