AbleCommerce Forums
»
AbleCommerce 9
»
General Questions
»
9.0.3 upgrade and generated category urls
Rank: Advanced Member
Groups: HelpDesk
Joined: 11/9/2018(UTC) Posts: 156
Thanks: 43 times Was thanked: 7 time(s) in 7 post(s)
|
I received hundreds of these errors during a test upgrade: Quote: The generated URL for category <some-category-name> is 365 characters which is too long.
The category name itself is only about 90 characters long. So why the discrepancy between 365 and 90? We weren't aware of any url length limits in Able Gold. Why is this a problem now in AC9? More importantly, are all these category urls now broken in the upgraded store?
|
|
|
|
Rank: Administration
Groups: Admin, Administrators, HelpDesk, System, Authorized User, Developers, Registered Joined: 10/5/2018(UTC) Posts: 169
Thanks: 7 times Was thanked: 13 time(s) in 12 post(s)
|
In AC9 we are adding entire parent path of catalog item in its URL. For example, if there is a category C inside a category B which is under root category A. Then then the URL generated will be, A/B/C which means the resulting URL will be composed of all these category names and not just the last node.
Moreover, In gold we were not storing URLs in database because they were created dynamically. In AC9 we generate these URLs in advance and then keep them in Database and Cache them.
In order to generate lengthy URLs you will need to increase the size of ac_CatalogUrls.Url and ac_CatalogUrls.LoweredUrl fields and then rebuild the URLs from SEO -> Settings -> Rebuild Catalog URLs option.
|
|
|
|
Rank: Advanced Member
Groups: HelpDesk
Joined: 11/9/2018(UTC) Posts: 156
Thanks: 43 times Was thanked: 7 time(s) in 7 post(s)
|
OK thanks. Does the nHibernate mapping also need to change? It's hard-coded to 300 chars as well.
I guess that leaves the question of why it's so short to begin with? A 1,000 character url is still perfectly valid so far as I know.
|
|
|
|
Rank: Administration
Groups: Admin, Administrators, HelpDesk, System, Authorized User, Developers, Registered Joined: 10/5/2018(UTC) Posts: 169
Thanks: 7 times Was thanked: 13 time(s) in 12 post(s)
|
Quote:OK thanks. Does the nHibernate mapping also need to change? It's hard-coded to 300 chars as well. No, you don't need to adjust Nhibernate mappings. The coded 300 in hbm will be used if you generate SQL schema through nhibernate schema export. It doesn't put any limit to input for 300 characters. Quote:I guess that leaves the question of why it's so short to begin with? A 1,000 character url is still perfectly valid so far as I know. This is sort of inherited from previous version. We used to generate short URLs under 300 characters in gold and custom URLs were kept with same limit in mind. Its still not common to run into URLs greater then 300 characters but we have plans to address the character limit.
|
|
|
|
AbleCommerce Forums
»
AbleCommerce 9
»
General Questions
»
9.0.3 upgrade and generated category urls
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close