Forum


HomeHomePremiumPremiumAdministrationAdministrationMenu links are not using custom Page URLsMenu links are not using custom Page URLs
Previous
 
Next
New Post
5/29/2014 1:43 PM
 

On my French site, I want the Menus to display words with accents. But this leads to the automatically generated URLs also having accents and this is a no-no.
So, I updated the URLs in the Page URL field to remove the accents.

Here is an example:

Page Name: Fêtes privées

Page URL: www.croisieresoutaouais.com/evenement...

However, the result is that:

1) The menu displays the Page Name with accents as desired

2) The URL http://www.croisieresoutaouais.com/ev...  and
http://www.croisieresoutaouais.com/&E...  BOTH work

3) The menu still links to the URL with accents instead of the one without accents

4) This means that Google will index the URL with accents, which totally defeats the purpose of changing the Page URL.

This is so fundamental that I think I must be doing something wrong...!

 
New Post
5/30/2014 3:37 AM
 

Hi David,

Not sure what is the problem on your site. I just did a test on my test site with an accent page and it worked just as you would expect. Have a look:

http://www.dnntutorial.com/ - See the second menu on the menu bar. It has an accent and when you click the url doesn't.

Maybe it is a problem on your DNN version. Mine is 7.2.2

Best regards,

Aderson

 
New Post
5/30/2014 5:09 AM
 

Hi Aderson,

I am using DNN 7.2.2. too. I noticed some things on your demo:

1) When I hover over the second menu, I see no link (unlike on Home, Our Team and Contact Us). When I click on it, I stay on the same URL.

2) After clicking I see 3 options: Tutorials, Modules and Skins. The URL for Tutorials does not have the accent while the URLs for the other two pages do. Are you able to remove the accent from the URLs of the two pages?

3) You are using SOLPART menus while my site is using DDR menus. Could this be a factor?

 
New Post
5/30/2014 6:22 AM
 

Hi David,

- I have changed this page http://www.dnntutorial.com/Productse to use a default newer skin.

1 - I think this is a glitch on the old Solpart - After the skin has been changed that should no long be a problem;

2 - I had not changed the friendly URLs of all submenus. I just did it;

3 - No long solpart if you go directly to http://www.dnntutorial.com/Productse

Cheers,

Aderson

 
New Post
6/12/2014 6:14 AM
 

Hi Aderson,

The developer fixed this problem but it involved delving into the database.  I asked them to share what they did so I could post it here.  This is their explanation:

 Based on this article
http://www.christoc.com/Tutorials/All...  and  this  list
Advanced URL Rewrite (https://github.com/dnnsoftware/Dnn.Pl...)

I modified the sql query to insert a row in PortalSettings table with the value AUM_AutoAsciiConvert set to Y.
Here is the insert statement that will convert unicode characters into their equivalent ascii character:

insert into {databaseOwner}{objectQualifier}[PortalSettings]
(PortalId
,SettingName
, SettingValue
, CreatedByUserId
, CreatedOnDate
, LastModifiedByUserId
, LastModifiedOnDate
, CultureCode
)
values([PORTALIDHERE]
'AUM_AutoAsciiConvert'
,'Y'
, -1
, GETDATE()
, -1
, GETDATE()
,[CULTURECODEHERE]
)

[PORTALIDHERE] and [CULTURECODEHERE] has to be replaced with corresponding values.
The same query can be used to every setting by replacing AUM_AutoAsciiConvert and Y.
For True and False, Y and N is used, anything else is the actual value.

 
Previous
 
Next
HomeHomePremiumPremiumAdministrationAdministrationMenu links are not using custom Page URLsMenu links are not using custom Page URLs



Try FREE
30 days money back guaranteed