How do I make an item where the Login URL is different than the navigate to URL

edited September 10 in Windows

I have a web site where the URL entered into the search bar is not the one where the login occurs. And if you go directly to the login URL via 1Password, the site does not allow you to login that way. I'll explain....

The URL I enter to get to the site is: http://www.myhpbenefits.com/
That URL forwards you to: https://leplb0530.upoint.alight.com

But if you go directly to the alight.com address you get an error that says:
Your page was not found, please check your URL. If you were trying to get to your company's benefits site, you can search for it here.

I have tried to add multiple websites to the item but it seems I'm not doing it correctly.

I am using Firefox 69.0, I also have both the browser extension and 1P X version 1.16.1 installed.

Added:
Of course just after I posted this I almost got it to work. I added the first website (http://www.myhpbenefits.com/) above the other. I then need to select 'Autofill' again to complete the login. Is there a way to make that second step occur automatically?


1Password Version: 7.3.684
Extension Version: 4.7.5.90
OS Version: Windows 10
Sync Type: 1P account

Comments

  • GregGreg

    Team Member

    Hi @DoctorBrown,

    Thank you for the update! I am glad to hear that it works now.

    This is a very strange redirect and I do not think that 1Password will be able to catch it automatically. 1Password saves your credentials based on the URL you are currently on for your security (we don't want your credentials to be filled on the websites they shouldn't be filled on).

    Have you tried saving the full URL to 1Password? Does the following URL work for you?

    https://leplb0530.upoint.alight.com/web/hp/login

    Please let me know. Thanks!

    ++
    Greg

  • edited September 10

    I'm surprised! Yes that worked! How did you know that removing the "?forkPage=false#/routing" string, which was included with the URL captured by 1Password, might work? I might find that useful for other sites.

  • bundtkatebundtkate

    Team Member

    I'll leave it to @greg to share if he knows exactly why that worked, @DoctorBrown, but I do have a theory. More often than not, I'm doing this to shorten a link I'm trying to share with someone rather than to help out go & fill, but the ideas are the same. A lot of the gibberish at the end is used for tracking purposes – the ref bits you see at the end of many URLs when you visit from a social media site and the like being the most well known example of such. Some of that stuff is necessary to serve you the proper page (for example, location-type tags can be used to get you to the proper region-specific page) and some isn't. If you nix too much, the site can't route you properly and, in some cases, including all of that reference data will similarly cause trouble because the site expects to get data it doesn't when you don't actually come from the page that serves that sort of URL.

    What I'll do when I'm having this sort of trouble is choose the shortest possible URL to start so https://leplb0530.upoint.alight.com URL you did in your example. If that doesn't work, I'll add the nett parameter back so /web in your example. Repeat as needed until nothing breaks and you've generally got your answer. As you work with more of these URLs, you can get a feel for what's needed and what isn't. For example, login.php is commonly used to indicate you need to sign in, so it's usually necessary and thus I personally would have included it from the start were I in your shoes. Anything that starts with ?ref= is usually just to track the referral page (marketing stuff) so not really needed and easy to get rid of. Until you get used to that, though, shortest reasonable URL first and expanding from there is a good tactic. :+1:

    Also, for what it's worth, you should be able to use the link that redirects the vast majority of the time. Generally, these redirect to the same domain so the page you land on will match your Login item since the URL you saved has the same domain. You're seeing trouble in this case because the domains don't match, which is somewhat atypical and should (hopefully) be fairly uncommon.

  • Thank you for the detailed explanation! Many may find it too technical, but hey, I a techie and like learning some new tricks.

  • GregGreg

    Team Member

    Hi @DoctorBrown,

    I am glad to hear that it worked! :)

    I browser the internets for a long time now, so it was my hunch. However, @bundtkate explained it wonderfully – you learn to identify the necessary stuff in the URLs.

    Please let us know if there is anything else we can help you with, we are always happy to do that. :+1:

    Cheers,
    Greg

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file