added an optional redirect parameter to publish_page with tests
fix p3k
Merge pull request #3163 from digi604/fix-3073

added an optional redirect parameter to publish_page with tests