1. Osclass Forum
  2. General
  3. Bug in Osclass page permalink setting when Language code in ...

Bug in Osclass page permalink setting when Language code in URL is enabled

Started by medmodir, November 8, 2024, 3:19 am

  • 1

medmodir

Hello,

We have noticed one bug in Osclass core code.
when "Language code in URL" is enabled in general settings. and permalink rule for Page URL: is changed to "{PAGE_SLUG}" only then home page of site for other language return 404 error page.
Also some other pages also return 404 error page on site.

This happens only when two conditions are true:
1) when "Language code in URL" is enabled in general settings
2) and permalink rule for Page URL: is changed to "{PAGE_SLUG}" only.

After changing these two setting when you change language on front end you get the 404 error page on homepage and on some other pages.

I don't want use help/{PAGE_SLUG} And I don't want this {PAGE_SLUG}-p{PAGE_ID}
Because the link is long and not good for SEO
If it is possible to find a solution by using {PAGE_SLUG} only


Please let us know how we can fix this.

Thank You

medmodir

Hello
Is there anything new if you can provide a solution to this Bug it will be appreciated
Thank you

calinbehtuk

I didn't have time to check.

medmodir

Thank you for replying. If you have the time, please help me find a solution. This would be greatly appreciated.
Best regards.

calinbehtuk

site-url/something is considered a category


So is normal to get 404 from this because that category does not exists.

medmodir

Is it possible to customize something in the code so that we can bypass this error?

calinbehtuk

It's not an error, it's working how is supposed to work.


Everything after the url will be considered a category, if you change this behavior you will have issue with categories, you will get 404 on categories link.

  • 1
Subscribe
X

Subscribe!

Subscribe to get the latest listings, updates and special offers delivered directly in your inbox.