Bug fix: make sure that the content route is saved on edit
new function to generate page urls in twig based on draft or live page versions