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 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.
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?
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!
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
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!
External URLs
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.
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?
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...
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.You might need to recycle the application pool for that setting to take effect, not sure.
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?
Hi Team,
Can anyone answer my question regarding "useDomainPrefixes"?
Hi Team,
Can anyone answer my question regarding "useDomainPrefixes"?
Almost a month, is this not a place to get help? I will see if I can find help elsewhere. Cheers.
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"
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
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"
is working on a reply...