When a node type has its RH behaviour set to 'not found', the node title is still shown as the page title, both as the TITLE html element and within the page.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | rabbit_hole-node-title-2564751-3-D7.patch | 379 bytes | eddie_c |
| #2 | 2564751.rabbit_hole.not-found-page-title.patch | 453 bytes | joachim |
Comments
Comment #2
joachim commenteddrupal_not_found() only sets the title if the site has a 404 page defined, so I think the best thing is for RH to set the not found title itself. If site_404 IS set, drupal_not_found() will set the title again later.
Comment #3
olofbokedal commentedClosing this since the 6.x branch isn't supported anymore.
Comment #4
eddie_c commentedI'm not sure that this is outdated. The behaviour seems to be the same in the 7.x branch: When you visit a node whose behaviour is set to 'not found' the resulting 404 page shows the node title.
@joachim's patch addresses this for me. I've re-rolled it for 7.x-2.x
Comment #5
eddie_c commentedComment #6
eddie_c commentedComment #8
matroskeenWell, I wasn't able to reproduce the issue, but committed for two reasons:
1) I think it might be some case when it happens;
2) Additional
drupal_set_title()It won't hurt anyway :)Thanks!