Nodebb: Selecting category as a homepage

Created on 12 Oct 2020  路  4Comments  路  Source: NodeBB/NodeBB

Hey!

There is a bug with selecting category as a homepage:

image

image

Moreover after refreshing settings page we can see Custom homepage with category ID:
image


Temporary solution is to set the homepage category only via ID:
image

Then everything works fine ;-)

In my ACP I can see 404 errors similar to:

/api/category/6&
/category/7&

Maybe there is an error with Uri encoding? Any ideas where to look deeper into it?

Best,
cryptoethic

bug regression

All 4 comments

Correct. In current NodeBB we have:
homePageRoute: ((data.homePageRoute === 'custom' ? data.homePageCustom : data.homePageRoute) || '').replace(/^\//, '')

should be like that?

homePageRoute: ((data.homePageRoute === 'custom' ? data.homePageCustom : data.homePageRoute) || '').replace(/^\//, '').replace('/', '/')

Thanks ;-)

The route was being returned as 'category/6/testing-ground' Pushed the fix to https://community.nodebb.org/ as well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

darKnight0037 picture darKnight0037  路  3Comments

djensen47 picture djensen47  路  5Comments

darKnight0037 picture darKnight0037  路  4Comments

julianlam picture julianlam  路  4Comments

sandratatarevicova picture sandratatarevicova  路  3Comments