Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul McCarthy 27 posts 127 karma points
    Jun 29, 2018 @ 13:14
    Paul McCarthy
    0

    New users invite link broken

    Recently we've had an issue whereby when we invite new users to our environment, the link they receive from Umbraco is to http://localhost/umbraco/VerifyInvite?invite=[long string] instead of http://our.domain/umbraco/VerifyInvite?invite=[long string]

    We haven't made any changes to controllers or UmbracoAuthorizationApi or anything else we can think of that could have caused this. Does anyone have any pointers for where to start looking?

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jun 29, 2018 @ 13:39
    Jan Skovgaard
    0

    Hi Paul

    That sounds very odd - What version of Umbraco are you running and, which changes have been made to the site when this started to happen?

    It's not because the hostnames on your Umbraco rootnode has suddenly been lost or something like that?

    /Jan

  • Paul McCarthy 27 posts 127 karma points
    Jul 04, 2018 @ 16:13
    Paul McCarthy
    0

    Hi Jan Sorry for delay in replying. We're running 7.7.9. I don't believe there's anything going on with the hostname. How should I confirm this?

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jul 04, 2018 @ 16:36
    Jan Skovgaard
    0

    Hi Paul

    It's also a longshot but I'm just wondering if for some reason the localhost has been added as a hostname on your live environment by mistake - Right click on the homepage note and select "Culture and hostnames" and see what has been configured there - Does it look allright?

    /Jan

  • Paul McCarthy 27 posts 127 karma points
    Jul 04, 2018 @ 16:52
    Paul McCarthy
    0

    Hi Jan No configuration there at all - those domains are all configured in our Azure hosting. I could add them here as well, as long as that doesn't cause any conflict?

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jul 04, 2018 @ 17:16
    Jan Skovgaard
    0

    Hi Paul

    Ok that sounds weird - But as long are you're only running one site in Umbraco there usually are no conflicts when fetching content etc. but if you did a multilingual site then you would need to add the hostname to let Umbraco now, which site to serve, when visiting domain a or b for instance.

    So it's considered a best practice to always add the hostname in Umbraco too. So let's give that a try and see if that's the cause of the issue. It safe to add the domain - But you should not add localhost though!

    Mind posting a screendump of what your settings look like once it's done?

    /Jan

  • Paul McCarthy 27 posts 127 karma points
    Jul 05, 2018 @ 13:56
    Paul McCarthy
    0

    Hi Jan I set the hostname as suggested on our devleopment environment; however that caused its own issues because when we then run localhost on this instance the page urls change from localhost://pagename to domain-name/pagename.

    However, the original invite error itself seems to have stopped occurring. I will continue to monitor this and update this post if I solve it.

    I can implement your solution on our production and test environment, as localhost is never run off those instances

    Thanks for your suggestions

    Paul

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jul 05, 2018 @ 14:15
    Jan Skovgaard
    0

    Hi Paul

    Are you currently running the same database locally as you are on the live environment? Otherwise I can't get why the domain name changed on your local instance too - If you're sharing the database then it's probably a good idea to run separate database instances for localhost/test and live.

    Then you can have your localhost and test domains setup in the dev database and the live domain on the live database.

    I hope this makes sense. And sorry if I misunderstood what you wrote above and you're already running your setup like this - I was just not sure :)

    Fingers crossed that you will manage to get it solved!

    /Jan

  • Paul McCarthy 27 posts 127 karma points
    Jul 05, 2018 @ 15:47
    Paul McCarthy
    0

    Thank Jan Yes, we have that setup localhost and develop -> dev database test -> test database live -> live database

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Mar 09, 2021 @ 15:55
    Stefan Kip
    0

    Had the same issue today with umbraco v8.7.2 hosted on Azure Web Apps. Weird stuff.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies