Menu

Override all URLs

Help
userxyz
2014-04-07
2014-04-13
  • userxyz

    userxyz - 2014-04-07

    Using latest, greatest version of Keepass on Windows 7, I see an optional setting on Integration tab: "Override all URLs". I have not tried using it yet, but I would like to see whether I can use this feature to alter the default action that occurs when I click the toolbar icon to open any entry's URL. Instead of having the effect of opening another browser window, I would like to have it open another tab on the already opened browser window if possible. I know that I could also drag a URL from the listing of entries onto the browser, but that requires that I first manually open another tab beforehand or else I would have to drop it on the existing tab and cause it to move away from where it is currently.

    Also, if I could use this setting somehow to integrate the program with a sandboxed browser that is opened when I now click the shortcut I have set up for opening my browser inside Sandboxie, then Keepass would not open the default browser unsandboxed whenever I click the toolbar button for opening a URL.

    but I suppose combining these two steps into one procedure can be done piecemeal if I could get the first step configured properly.

     
  • userxyz

    userxyz - 2014-04-07

    Using latest, greatest version of Keepass on Windows 7, I see an optional setting on Integration tab: "Override all URLs". I have not tried using it yet, but I would like to see whether I can use this feature to alter the default action that occurs when I click the toolbar icon to open any entry's URL. Instead of having the effect of opening another browser window, I would like to have it open another tab on the already opened browser window if possible. I know that I could also drag a URL from the listing of entries onto the browser, but that requires that I first manually open another tab beforehand or else I would have to drop it on the existing tab and cause it to move away from where it is currently.

    Also, if I could use this setting somehow to integrate the program with a sandboxed browser that is opened when I now click the shortcut I have set up for opening my browser inside Sandboxie, then Keepass would not open the default browser unsandboxed whenever I click the toolbar button for opening a URL. Another problem between Sandboxie and Keepass is that it does not allow me to drag and drop the URL from entries as I can do with a unsandboxed browser window.

    But I suppose combining these two steps into one procedure can be done piecemeal if I could get the first step configured properly.

     
  • Paul

    Paul - 2014-04-07

    Opening in a new tab is controlled by your browser, not KeePass.

    Interacting with a browser in a sandbox is not possible unless KeePass is in the same sandbox.

    cheers, Paul

     
  • userxyz

    userxyz - 2014-04-12

    Hi, Paul.

    Opening a new tab is controlled by the browser when the link is already in a browser window. Otherwise, for example, clicking a link in another program such as Outlook or Keepass itself, would cause a new instance of the browser to open. At least that has been my experience. I am very curious of the functionality or purpose of this particular setting to "Override all URLs". If you can shed some light on that point, I would appreciate hearing from you. Thanks.

     
  • wellread1

    wellread1 - 2014-04-12

    As Paul said, the Open in new tab/window behavior is controlled by the browser. For example in Firefox one would check 'Open new windows in new tabs instead' in Firefox>Options>Options>Tabs(tab)

    "Override all URLs" means that if cmd://{INTERNETEXPLORER} "{URL}" is placed in "Override all URLs" field then KeePass will attempt to open anything in the URL field of an entry with IExplorer, even if the system default were Firefox. URLs starting with 'ftp://' would also be opened with IExplorer and so on. URLs in the entry Notes are unaffected.

     

    Last edit: wellread1 2014-04-12
  • Dominik Reichl

    Dominik Reichl - 2014-04-12

    Overriding all URLs is rarely useful. If you want to open all HTTP and HTTPS URLs with a different browser, I instead recommend going to 'Tools' -> 'Options' -> tab 'Integration' -> button 'URL Scheme Overrides', and create and enable overrides for HTTP and HTTPS.

    Best regards,
    Dominik

     
  • userxyz

    userxyz - 2014-04-12

    wellread1, I am not a programmer, but I do know without a doubt that it is "not" simply true that the browser alone controls whether a tab or window would be opened. The browser's setting "does" affect it in many cases, but there has to be some other factor at play in some instances because, as I stated earlier, I am able to reproduce the following procedure quite easily:

    1. Open Firefox in a Sandboxie controlled Window.
    2. Set Firefox to "open new windows in a tab instead".
    3. Open Keepass without customizing its settings in regard to URL schemes.
    4. Select any entry in Keepass with a proper URL
    5. Click on Keepass tool to "Open URL".

    What then happens is that a "new" instance of Firefox opens but not inside Sandboxie. Likewise, under the same circumstances, if I were to click on an http URL inside MS Outlook, I subsequently see a new instance of Firefox opened, not a new tab in the existing instance of Firefox. I have no doubt that these two programs are not the only examples of this behavior. Therefore, clearly, despite a setting to the contrary in Firefox, some other programmable aspects of these programs interacting to create the result.

    Nevertheless, based on your clue above regarding how to utilize "Override all URLs", I have now figured out how to utilize this field to make Keepass play nicely with Sandboxie, at least with Firefox it does, and I suspect it would do as well with IE.

    Putting this setting in the field for "Override all URLs", causes a new tab to be opened inside an existing instance of Firefox with Sandboxie when I click on Keepass tool "Open URLs":

    cmd://"c:\Program Files\Sandboxie\Start.exe" /box:DefaultBox "c:\Program Files (x86)\Mozilla Firefox\firefox.exe" "{URL}"

    This now works perfectly on my system, as I intended. :)

    I believe that the multiple options in Keepass button for "URL Scheme Overrides" are examples, templates, as it were, of what could be used with a variety of specific browsers and protocols. Similarly, using the above command with either HTTP or HTTPS by adding it to that list already present would likely be a more useful configuration than merely "overriding all URLs", just as the previous poster Dominik pointed out. Still, in my case, currently at least, there is no difference in putting it as an exclusive override because I have no other protocols than these two configured with my entries in Keepass. Thanks for the clue, wellread1.

    Paul, although I am not a programmer, in regard to your statement, "Interacting with a browser in a sandbox is not possible unless KeePass is in the same sandbox", I do know that Sandboxie has the means of allowing other programs, those outside of its sandbox, to interact with it. There are many configuration settings to this effect in its standard program. Additionally, the above example illustrates such functionality as well.

     
  • Paul

    Paul - 2014-04-13

    The behaviour you describe is because of Sandboxie, not Windows, KeePass or the browser. When you set KeePass to use Sandboxie to open your URL you see the desired behaviour. This is exactly what Windows is expected to do given your configuration.

    cheers, Paul

     

Log in to post a comment.

MongoDB Logo MongoDB