Copied to clipboard

Flag this post as spam?

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


  • René 327 posts 852 karma points
    Sep 18, 2016 @ 10:54
    René
    0

    Https CM Umbraco Tools

    Hi Thanks for CM Tools project. I have one question:

    I have a site with "https://domain.com" but the site map only shows "http://domain.com"

    The domain is set under "Domain and cultures"

    Is there anyone who have seen this.

    René

  • René 327 posts 852 karma points
    Sep 18, 2016 @ 11:43
    René
    0

    Hi I managed to decompiel the dll // CMUmbracoTools.Controllers

    private static string GetUrlWithDomainPrefix(string url)
        {
            if (url.StartsWith("/"))
            {
                url = url.Substring(1);
            }
            string text = string.Format("http://{0}/", HttpContext.Current.Request.ServerVariables["HTTP_HOST"]);
            if (url.StartsWith(text))
            {
                return url;
            }
            return text + url;
        }
    

    As i can see the http is hardcoded. "string text = string.Format("http://{0}/""

    This would be really great not to have this hard coded.

    Is there any one who have a solution for this issue :-)

    René

  • Aristotelis Pitaridis 84 posts 402 karma points
    Sep 19, 2016 @ 06:14
    Aristotelis Pitaridis
    1

    Hello Rene,

    Thanks for the post. I fixed the problem and I uploaded a new version. Please try it and inform me if you have a problem with the new version.

    Aristotelis

  • René 327 posts 852 karma points
    Sep 19, 2016 @ 07:36
    René
    0

    Hi Aristotelis

    Wow.. great service

    It is working great, thanks.

    René

Please Sign in or register to post replies

Write your reply to:

Draft