FIX: published pages couldn't be routed from inside discourse (PR #9569)

This will allow to post a link to published page in a post. Before this, users clicking this link would have seen a 404.

ATM /pub is server sider only.

GitHub

Ah yes I forgot to do this! I even thought about it then forgot.