Forum


HomeHomePremiumPremiumDevelopmentDevelopmentHyperlink url path on localhostHyperlink url path on localhost
Previous
 
Next
New Post
8/17/2012 6:03 AM
 

Hi,
 I just installed a fresh version of DNN 6.2.2 on my localhost to begin some development work and somthing strange is ocurring. I created a hyperlink on one of the pages that links to the "About Us" page.  Now when I log out and click on the new hyper link, I get a page not found error. I noticed the url path is just about us.aspx/ with no reference to localhost. 

I go back into the editor and look at the hyperlink properties and the URL string is indeed  "//AboutUs.aspx".  So I again select the page to link to and the url string is now localhost/dnn622/AboutUs.aspx as it should be.  But when I save it, it reverts back to //AboutUs.aspx and I get the page not found issue again.
Any ideas?

 
New Post
8/17/2012 6:24 AM
 
Try doing this so we force the editor to keep full URLs when saving the content:

1 - On the web.config add

ConfigFile="~/DesktopModules/Admin/RadEditorProvider/ConfigFile/configfile.xml"

to the HTML provider entry. You can find it by search for 'add name="DotNetNuke.RadEditorProvider"'

2 - Now you need to open the file /DesktopModules/Admin/RadEditorProvider/ConfigFile/configfile.xml and under ContentFilters change it to make it look like this 'MakeUrlsAbsolute,DefaultFilters' instead of just 'DefaultFilters'

This should force the editor to keep the absolute URL for links and images as well.

Note: this is not always desired as if you are developing your site locally and need to move it live, then all your links will have "localhost" on them, which will cause them to break. But on your situation this is what I can suggest.

Cheers,
Aderson
 
New Post
8/17/2012 8:15 AM
 

Hi Aderson,

I made the change to the configfile per you instruction and it didn't seem to make any difference.  

In the  /DesktopModules/Admin/RadEditorProvider/ConfigFile there are actually three files: configfile, ConfigFile.xml.Original, and default.ConfigFile.

I then tried it in the other two files with same result.

Whenever I click  O.K. on the hyperlink manager, the hyperlink property reverts back to the short URL.

Hutch 

 
New Post
8/17/2012 8:57 AM
Accepted Answer 

Did you change the web.config as well Hutch?

 If not, try that. If you did, let's skype (aderson.oliveira) on Monday so you could share your screen with me and I have a look if you want.

Cheers,

Aderson

 
New Post
8/17/2012 9:46 AM
 

Yes I did.  Here is my web.config:

<htmlEditor defaultProvider="DotNetNuke.RadEditorProvider">
<providers>
<clear />
<add name="DotNetNuke.RadEditorProvider" type="DotNetNuke.Providers.RadEditorProvider.EditorProvider, DotNetNuke.RadEditorProvider" providerPath="~/DesktopModules/Admin/RadEditorProvider" ConfigFile="~/DesktopModules/Admin/RadEditorProvider/ConfigFile/configfile.xml" />
</providers>

Here is the  /DesktopModules/Admin/RadEditorProvider/ConfigFile/configfile.xml entry:

<property name="ContentFilters">MakeUrlsAbsolute,DefaultFilters</property>

 
Previous
 
Next
HomeHomePremiumPremiumDevelopmentDevelopmentHyperlink url path on localhostHyperlink url path on localhost



Try FREE
30 days money back guaranteed