ezsystems/ezpublish — pull request #336 by td204 (2012-05-03 12:01:21+00:00)
Title: Fixed #017773: Publishing the home page after preview triggers an error

The module was redirecting back to the parent node. The fix checks for an
available node, and checks if the parent node_id equals 1. If so,
we redirect back to the current node id.
Code is similar to the one used in content/edit.php