Browser opens localhost in new tab

Hi!

For local web development I'm accessing "localhost". I'm using the browser extension for chrome and firefox. I have logged in on localhost pages and 1pw asked to save the login > it is saved correctly. Now I'm browsing to localhost login page and I'm clicking on the browser extension and 1pw shows me the expected entry. But if I click on the entry it opens a new tab and not filling in at the actual page.

Steps to reproduce:
1. open "http://localhost/testpage/" (containing a login)
2. login
3. save this new page in 1pw (asked automatically)
4. close browser
5. open browser again
6. navigate again to "http://localhost/testpage/"
7. click on the browser extension of 1pw
8. select the suggested entry for "http://localhost/testpage/"
9. a new tab is opened and the credentials are filled in

At step 9 the expected behavoir would be that the credentials are filled in at the ogirinal tab of step 6 and not in a new tab.

For non "localhost" pages it works as expected - filled in at the actual tab without opening a new tab.

Additional:
It is also not working if I have a "local development page" and a "live page" with the same credentials.

This means - one entry with:
1. Website 1 = "https://www.test.com"
2. Website 2 = "http://localhost/test"

If I'm opening Website 1 > click browser extension > showing correct entry > credentials filled in directly as expected

If I'm opening Website 2 > click browser extension > showing correct entry > opens new tab with Website1 (!!!)


1Password Version: 7.3.684
Extension Version: 4.7.5.90
OS Version: Windows 10
Sync Type: Not Provided

Comments

  • Greg
    Greg
    1Password Alumni

    Hi @Phoniex,

    Thank you for getting in touch and using 1Password!

    Could you please specify what happens if you press Ctrl + \ to fill your credentials, instead of clicking on the website in 1Password extension? Does 1Password fill your credentials correctly then?

    As for the behaviour under "additional", please see the reply from Brenty here. Let me know if it answers your question. Thank you! :+1:

    Cheers,
    Greg

  • Phoniex
    Phoniex
    Community Member

    Hi @Greg,

    I think Ctrl + \ means the setting "Fill login or show 1 password" to autofill the credentials into the login fields (german keyboard, default settings here Ctrl + #)? If I open the page and press Ctrl + # the same happens: a new tab is opened and the credentials are filled out in the new tab.

    But then I think this is related to your link from Brenty. Because 1password doesn't recognize "localhost" as vaild domain.

    Is there a solution for this in the meantime (for both cases)? Because at the moment I have two entries - one for the "live" domain and one for "localhost"...

  • Under current circumstances, I don't know that there is a solution, @Phoenix. As brenty mentioned in his reply that Greg linked, 1Password doesn't currently recognize localhost as a valid domain so I don't see any reason it would treat your separate localhost item any differently – it's opening the saved URL in an effort to reach a valid website, same as it does with multiple URLs. You could try triggering a Go & Fill on purpose as that's essentially what's happening here – skip the step of opening that page and, instead, select the localhost item from mini and let 1Password open and fill for you. I know this probably isn't the workflow you're accustomed to, but I suspect there's a good chance it would work and save you some unneeded steps at the least. :+1:

This discussion has been closed.