Custom homepage broken?
-
I have mine set to
category/4/staff
which makes it easy for me to get there when I want to.Going there via url or by the categories page works fine, but otherwise I get this:
EDIT: amusingly, clicking on the link gives the same result.
-
@boomzilla We definitely need an emergency update for this, but only if it also includes the :900_dollary_doos: emoji that's been sitting in a PR for a while
-
-
@boomzilla hmm, that works so I'm gonna guess it's not a tdwtf-specific problem
/cc @julianlam @barisu
-
@ben_lubar yeah, that link works, too. This one breaks, though:
-
@ben_lubar said in Custom homepage broken?:
@boomzilla hmm, that works so I'm gonna guess it's not a tdwtf-specific problem
/cc @julianlam @barisu
Actually, come to think of it, I was seeing this in my dev environment where I have a more vanilla install that doesn't have all of our custom stuff. I assumed it was something weird about my setup and didn't really worry about it.
-
@ben_lubar said in Custom homepage broken?:
@boomzilla hmm, that works so I'm gonna guess it's not a tdwtf-specific problem
/cc @julianlam @barisu
Yep, I get the same thing on community.nodebb.org:
-
@boomzilla said in Custom homepage broken?:
@ben_lubar yeah, that link works, too. This one breaks, though:
I was just curious because I know NodeBB likes to be sneaky with internal links.
-
I am not getting the problem. Mine is set to
/unread
.
-
Interestingly enough, the dropdown thing (that essentially just sets the custom box to a particular string) does work to set the string, but also does not work in the same way.
After saving (and reloading):
Curiously, when it works, this is the response:
When it doesn't (keep in mind both are attempted straight from the settings page):
The one that don't work is missing that
x-upstream
header...
-
@levicki From your screenshot it would seem that they forgot to unescape the
/
characters in the custom URL (or escaped it one too many times) before passing it off to the code which tries to find the right page.So far everything has kept working for me, but then I set it to
unread
which doesn't contain any special characters.
-
@levicki said in Custom homepage broken?:
Navigation to https://what.thedailywtf.com/ is now broken as well, I am getting 404:
Yes, when you're logged in navigating to the basic URL goes to whatever you've set as your homepage.
-
Since none of the nodebb devs showed up:
-
@levicki said in Custom homepage broken?:
@JBert That may be the case for the custom URL but not for this, what you get when you click on the link @boomzilla and I posted?
My setting:
Surfing to https://what.thedailywtf.com/ just shows unread topics, like I said I don't get an error.
-
@JBert said in Custom homepage broken?:
@levicki said in Custom homepage broken?:
@JBert That may be the case for the custom URL but not for this, what you get when you click on the link @boomzilla and I posted?
My setting:
Surfing to https://what.thedailywtf.com/ just shows unread topics, like I said I don't get an error.
Oh, I notice that they added categories to the dropdown! Let's try that:
New error!
-
Seems slashes may be the issue? This has been working fine for me, I actually thought it was
/unread/new
but I forgot they had changed it:
-
@LB_ said in Custom homepage broken?:
Seems slashes may be the issue?
Yep:
- settings.homePageRoute = validator.escape(String(settings.homePageRoute || '')); + settings.homePageRoute = validator.escape(String(settings.homePageRoute || '')).replace('/', '/');
-
@JBert said in Custom homepage broken?:
like I said I don't get an error.
It's already been mentioned, we don't really need proof that what's working is working.
-
@boomzilla said in Custom homepage broken?:
@LB_ said in Custom homepage broken?:
Seems slashes may be the issue?
Yep:
- settings.homePageRoute = validator.escape(String(settings.homePageRoute || '')); + settings.homePageRoute = validator.escape(String(settings.homePageRoute || '')).replace('/', '/');
I was wondering why it now says you're supposed to not include the slash. Now I know they shoddily enforce it.
-
@PleegWat said in Custom homepage broken?:
I am not getting the problem. Mine is set to
/unread
.Isn't
/unread
the default? I wouldn't expect weird behavior on that. Well, weirder than 's usual behavior, anyway.
-
@levicki said in Custom homepage broken?:
Any idea when a fix for this will land? It's really annoying.
You could ask over at community.nodebb.org. It's been 26 days since 1.13.2 was released. 1.13.1 was released mid-December and 1.13.0 in November. So...probably soon?
-
@levicki said in Custom homepage broken?:
it's driving me mad.
I thought that was your default state?
-
@levicki Don't use an
unsigned char
for that next time.
-
@dkf said in Custom homepage broken?:
@levicki Don't use an
unsigned char
for that next time.Sounds more like
unsigned bool
to me.
-
@topspin said in Custom homepage broken?:
@dkf said in Custom homepage broken?:
@levicki Don't use an
unsigned char
for that next time.Sounds more like
unsigned bool
to me.Nice.
-
@levicki said in Custom homepage broken?:
Guys, can someone log in to the FTP or whatever you use to maintain the forum software and edit the problematic line manually until we get a proper update?
It's been weeks.
I think technically PRs are accepted. Could submit a thing that does it or whatever.