scrapbook icon indicating copy to clipboard operation
scrapbook copied to clipboard

404s on Username Changes

Open sampoder opened this issue 3 years ago • 5 comments

It seems that when you change the username in Airtable, you then need to rebuild the whole site to remove the 404.

https://scrapbook.hackclub.com/sampoder/ is 404ing :(((

Screenshot 2020-10-02 at 10 48 56 PM

https://scrapbook.hackclub.com/sampoder/?welcome=false is not interestingly

my theory is this is due to the pre-rendering, going to explore :D

sampoder avatar Oct 02 '20 14:10 sampoder

Yeah, something about prerendering. I wonder if fetching the page in advance with URL parameters would help with this?

lachlanjc avatar Oct 02 '20 19:10 lachlanjc

Facepalm

sampoder avatar Oct 12 '20 14:10 sampoder

sadly my fix did not fix this

sampoder avatar Oct 20 '20 00:10 sampoder

ahh so we made some progress: it now only 404s when you reset your profile to a username that would have been pre rendered. So for example changing my name from sampoder -> sam it works, but sam to sampoder doesn't

sampoder avatar Oct 20 '20 05:10 sampoder

If I’m understanding you correctly, that sounds fine. We pre-render the most active users’ profile pages, which obviously includes you, so if you changed your username back to something pre-rendered, it won’t re-render. If it’s working if you change your username to something randomly new, that’s perfect

lachlanjc avatar Oct 31 '20 03:10 lachlanjc

@sampoder since we're back into scrapbook- is this something that needs to be addressed?

alhardwarehyde avatar Feb 02 '23 16:02 alhardwarehyde

Yes, this is still on the table for fixing

sampoder avatar Feb 03 '23 15:02 sampoder