Jump to content
TNG Community

Invalid Person or Family ID errors?


dmulter

Recommended Posts

I see that a valid page is returned even when an invalid family or person ID is passed to various pages such as getperson.php. It currently displays a mostly empty Unknown result.

Seems like it would be more appropriate to return a 404 error in such cases. One side effect by not returning 404 is that a Google cache of a previously available ID will continue to persist even though a new GEDCOM import rearranged IDs. It appears confusing to people that follow such a link. My sense is also that it also causes old (and incorrect) entries to continue to appear in Google search results since Google never sees old pages disappear.

The code should still display a friendly 404 page with all the common header and footer elements, but indicate that the family or person doesn't exist in the database.

Thoughts?

Link to comment
Share on other sites

No, the problem isn't how to do a custom 404 page, I already do that on my site. The problem is that TNG doesn't generate 404s for invalid people and family IDs.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...