Copied to clipboard

Flag this post as spam?

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


  • Susanne Hou 4 posts 74 karma points
    Apr 13, 2021 @ 11:11
    Susanne Hou
    0

    Links are wrong for some domains

    He everyone.

    I have a setup with 12 different websites. Each of these have separate domains for development environment, staging level 1 and 2, and production. For example:

    enter image description here

    This setup is the same for all 12 websites. However, 6 og them displays the wrong links in info - see screenshot bewow. This is from staging level 2, which is called a-test, and so the link should be to a-test, but it is not. Instead it links to u-test, which is the development environment.

    enter image description here

    On the code side of things, we are using the SiteDomainHelper to add the sites and bind them:

        SiteDomainHelper.AddSite("u-test-bia", "u-test.xxxxxx.no");
        SiteDomainHelper.AddSite("u-test2-bia", "u-test2.xxxxxx.no");
        SiteDomainHelper.AddSite("s-test-bia", "s-test.xxxxxx.no");
        SiteDomainHelper.AddSite("s-test2-bia", "s-test2.xxxxxx.no");
        SiteDomainHelper.AddSite("a-test-bia", "a-test.xxxxxx.no");
        SiteDomainHelper.AddSite("prod-bia", "xxxxxx.no", "www.xxxxxx.no");
    
        SiteDomainHelper.BindSites("u-test-bia");
        SiteDomainHelper.BindSites("u-test2-bia");
        SiteDomainHelper.BindSites("s-test-bia");
        SiteDomainHelper.BindSites("s-test2-bia");
        SiteDomainHelper.BindSites("a-test-bia");
        SiteDomainHelper.BindSites("prod-bia");
    

    As far as I can see, there is nothing wrong with this. This is the code for some 3 of the pages where the link is correct:

            SiteDomainHelper.AddSite("u-test", "u-test.xxxxx.no", "u-test.xxxxx.dk", "u-test.xxxxx.se");
            SiteDomainHelper.AddSite("u-test2", "u-test2.xxxxx.no", "u-test2.xxxxx.dk", "u-test2.xxxxx.dk", "u-test2.xxxxx.se", "u-test2xxxxx.xxxxx.dk");
            SiteDomainHelper.AddSite("s-test", "s-test.xxxxx.no", "s-test.xxxxx.dk", "s-test.xxxxx.se");
            SiteDomainHelper.AddSite("s-test2", "s-test2.xxxxx.no", "s-test2.xxxxx.dk", "s-test2.xxxxx.se");
            SiteDomainHelper.AddSite("s-testapp", "s-testapp.xxxxx.dk", "s-testapp.xxxxx.no", "s-testapp.xxxxx.se");
            SiteDomainHelper.AddSite("a-test", "a-test.xxxxx.no", "a-test.xxxxx.dk", "a-test.xxxxx.se");
            SiteDomainHelper.AddSite("prod-al", "xxxxx.no", "xxxxx.dk", "xxxxx.se", "www.xxxxx.no", "www.xxxxx.dk", "www.xxxxx.se");
    
            SiteDomainHelper.BindSites("u-test");
            SiteDomainHelper.BindSites("u-test2");
            SiteDomainHelper.BindSites("s-test");
            SiteDomainHelper.BindSites("s-test2");
            SiteDomainHelper.BindSites("s-testapp");
            SiteDomainHelper.BindSites("a-test");
            SiteDomainHelper.BindSites("prod-al");
    

    To make matters even more confusing, alle links displayed in the umbraco backoffice are correct in u-test (developer environment) and S-test (staging level1). Only a-test (staging level 2) and production have this issue.

    Any idea of what might be causing this? I have considered the possibility of there being something wrong in database for a-test and prod, but I don't even know what to look for if that was the case.

  • 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