Copied to clipboard

Flag this post as spam?

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


  • Gideon 2 posts 72 karma points
    Dec 22, 2016 @ 08:13
    Gideon
    0

    Umbraco stripts 'www' from my URL's

    On my Umbraco based website I have a link to a authentication service. This link has www in it but Umbraco strips it out. Is there a way to stop it from affecting my URL's?

  • Rune Hem Strand 147 posts 911 karma points hq c-trib
    Dec 27, 2016 @ 12:25
    Rune Hem Strand
    0

    Hi Gideon

    Can you provide a little more info? Then I'm sure someone can help you out! How is the link added? How is it rendered in the template?

    All the best
    Rune

  • Gideon 2 posts 72 karma points
    Jan 10, 2017 @ 07:38
    Gideon
    0

    It does not really matter how it is added. I tried to hardcode it (href attr) and I tried with .GetProperty("linkName").Value; or .GetPropertyValue("linkName");. Right now the fix is "http://" + "www" + ".restofurl.com/"; Even with var link = "http://www.google.nl" and ref it with @link strips the 'www'.

  • Nik 1625 posts 7295 karma points MVP 7x c-trib
    Jan 10, 2017 @ 08:56
    Nik
    0

    Hi Gideon,

    Could you provide a bit more information such as what version of Umbraco you are using, a few detailed examples of where and when the www is being stripped out?

    I've been using Umbraco for a while now and haven't seen this behaviour before. I've used text inputs, link pickers and hard coded link values before and never see the www. get stripped off.

    Have you checked that the value is stored correctly in your properties?

    Thanks,

    Nik

  • 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