Get a page slug by id

Hello,

Is there anyway to get a page slug/url by an id? Something like this

get_page_url($pageId)

I am trying to link another page by id because the customer can change the slug.

Thank you in advance

Where exactly are you trying to link to it?

Thank you. i was thinking it wrong.
there is a definition for this

{{ 'about'|page }}

where about is the about.htm from theme and the slug definition is itself in the about.htm as

1 Like