Copied to clipboard

Flag this post as spam?

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


  • Chris Dalley 7 posts 55 karma points
    Aug 27, 2014 @ 05:26
    Chris Dalley
    0

    Hi Team,

    I am very new to Umbraco (and as usual, no training) and have been given a task to chuck some external URLs to some documentation we have hosted on another local website.

    When I try to load these links into the page it trims off the start of the website name for example I enter:
    http://test.website.com/content/webpage.html

    When I save and publish and view the website and click the link I notice that Umbraco has trimmed it to:
    /content/webpage.html and tries to find the file locally.

    How can I make it so I can link external URLs without Umbraco auto-corrupting them? We don't want a sweeping change that will affect all pages, if we can make one template and edit that to set to any pages we need to have external URLs that would be preferable.

    I have noticed however that http://www.google.com works an external URL... odd.


  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Aug 27, 2014 @ 07:38
    Sebastiaan Janssen
    0

    Umbraco only turns URLs into relative paths if you enter a URL that is on the same domain as you're currently working on or if it's a host name that you've set up on one of the ancestor nodes of the node you're working on. Could that be the case?

  • Chris Dalley 7 posts 55 karma points
    Aug 27, 2014 @ 12:42
    Chris Dalley
    0

    Hi Sebastiaan, 

    Yes and no?

    For privacy sake (I can get in trouble) so I will give examples below.

    The Umbraco site is hosted on http://www.mywebsite.com
    The site we are linking to is http://mydocumentationwebsite.com:9000/documents/document.pdf (example) 

    The server that hosts the Umbraco site is SERVER001
    The server that hosts the other site is SERVER002

    On the same domain, but not the same addresses or servers.

    The part that confuses me is that it has worked on one page, but not one a new one I'm editing - the code is the same and the templates match also...
     

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Aug 27, 2014 @ 13:23
    Sebastiaan Janssen
    0

    Hmm, is it http://mydocumentationwebsite.com:9000/ or http://mydocumentation.website.com:9000/ ?? The last one would match the domain obviously. I don't know why it works on one page and not the other, seems strange.

    You could try and set useDomainPrefixes to true in umbracoSettings.config just to make sure the full URLs are generated, I think that might help.

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Aug 27, 2014 @ 13:35
    Sebastiaan Janssen
    0

    You might need to recycle the application pool for that setting to take effect, not sure.

  • Chris Dalley 7 posts 55 karma points
    Aug 27, 2014 @ 22:09
    Chris Dalley
    0

    Hmm, is ithttp://mydocumentationwebsite.com:9000/ or http://mydocumentation.website.com:9000/ ??

    http://mydocumentationwebsite.com:9000 is correct. The other won't work.

    Thanks for that - if I make that change to useDomainPrefixes will that ruin any current links we have set?

  • Chris Dalley 7 posts 55 karma points
    Sep 01, 2014 @ 03:11
    Chris Dalley
    0

    Hi Team,

    Can anyone answer my question regarding "useDomainPrefixes"? 

  • Chris Dalley 7 posts 55 karma points
    Sep 14, 2014 @ 22:10
    Chris Dalley
    0

    Hi Team,

    Can anyone answer my question regarding "useDomainPrefixes"? 

  • Chris Dalley 7 posts 55 karma points
    Sep 17, 2014 @ 22:19
    Chris Dalley
    0

    Almost a month, is this not a place to get help? I will see if I can find help elsewhere. Cheers.

  • Danny Blatant 91 posts 358 karma points
    Sep 24, 2014 @ 20:17
    Danny Blatant
    0

    Hi Chris,

    Sorry your thread seems to have gone stale, hate when that happens! What version of Umbraco are you using? Also what type of field are you entering the URL's in??

    I only ask as I am developing in Umbraco 7 and fould there to be a missing "Link Picker" type of field. You know one with a URL, optional Title and optinal target...

    Once I installed the Link Picker back in I fould it work's marvelously! You can enter an optional title and there's an "Open in new window" checkbox. It seems to handle every valid formatted URL out there too. I just tried it with port numbers, missing http[s]:// etc and it seems to work fine.

    Here's my origional thread in case it helps at all!

    http://our.umbraco.org/forum/umbraco-7/using-umbraco-7/56384-Where-is-the-Link-Picker?p=0

    Kind Regards,

    Danny "Blatant"

  • Chris Dalley 7 posts 55 karma points
    Sep 24, 2014 @ 21:38
    Chris Dalley
    0

    Hi Danny,

    Unfortunately we are running on version 4 at present (due to lack of inhouse knowledge as someone implemented and left) and I've been dumped with it :P

     

  • Danny Blatant 91 posts 358 karma points
    Sep 25, 2014 @ 11:02
    Danny Blatant
    0

    Yikes,

    I'm afraid U4 was before my Umbracian days! Still might be worth looking into Link Picker, it might be available in a U4 flavour.

    Or, I just checked and you could use the url picker in uComponents. uComponents is literally all sorts of awesome (nuPickers in U7) when it comes to datatypes and while they don't support older versions they do still publish them!

    http://our.umbraco.org/projects/backoffice-extensions/ucomponents

    Kind Regards,

    Danny "Blatant"

Please Sign in or register to post replies

Write your reply to:

Draft