Currently, there is no HubL function to return a URL based on page ID, but I'll pass this idea along to the team in charge.
It's worth noting that if you do change a pages URL, we'll automatically create a redirect to the new page for you, so your links should still work. More info on that here.
Currently, there is no HubL function to return a URL based on page ID, but I'll pass this idea along to the team in charge.
It's worth noting that if you do change a pages URL, we'll automatically create a redirect to the new page for you, so your links should still work. More info on that here.
The page_by_id() seems to return nothing if the page is one of a blog (i.e. the blog listing page or a blog post page). I'm using this in a custom module with a field of type Page to convert the selection in the Page dropdown to an URL of the page, but now I can't do that.
It'd be logical that the function could work with all the pages that are selectable as pages, which includes the blog listing page and blog post pages.