WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2025 Poal.co

518

Sometimes I reload a thread and it's 404, thinking it was deleted.

Sometimes I reload a thread and it's 404, thinking it was deleted.

(post is archived)

[–] 0 pt

That's because poal uses subnames in permalinks.

There's no simple ways to fix that, besides using the /p/[post-number]

[–] 0 pt

couldn't you just search for the post number in the 404 page and redirect if it is found?

[–] 1 pt

There's no need to do that. I just need to write an extra function that will use /p/postnumber if a post isn't located in a specific sub.

That way if a post has truly been deleted, it will throw a 404.

[–] 0 pt

ok, on a portal i worked before we did all redirecting in the 404 page in php, i may be caught in a specific way of thinking about that