How can I capitalize the 1st. letter in urls in nop 4.1? I went to advanced to seo and changed the name but it keeps reverting back to friendly lower case names after saving.
Hi, If you mean the url that appears in the navigation bar (eg. http://yoursite.com/Product-or-Category), by default friendly names be save in lowercase, but you could edit it from DB in field 'Slug' on 'UrlRecord' table.
How can I capitalize the 1st. letter in urls in nop 4.1? I went to advanced to seo and changed the name but it keeps reverting back to friendly lower case names after saving.
I understand but I have a 7 year old .net .aspx website that has 2000 pages and most of them has a Camel naming convention with capital letters, I would like to keep the original page names or should I take the hit for changing that many page names to lower case by using 301 redirects, and whatever else strange that appears in nop 4.1?
I understand but I have a 7 year old .net .aspx website that has 2000 pages and most of them has a Camel naming convention with capital letters, I would like to keep the original page names or should I take the hit for changing that many page names to lower case by using 301 redirects, and whatever else strange that appears in nop 4.1?
method name "GetSeName" in UrlRecordService.cs file.
Actually in c#, a string is case sensitive. Therefore, some people prefer to save string in a lower or upper case format to avoid string matching exercise. I think this is why it has been kept like what it is now in nopCommerce code.
You can simply set
name = name.Trim()
at line number 1580 inside UrlRecordService.cs file inside method name GetSeName and then modify rest of code accordingly to ensure there are unique SEO names regardless of their case.