---
title: "getPageURL"
canonical: "https://support.appfire.com/space/PSCONF/15304621/getPageURL"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | getPageURL(pageId) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns the URL of the page.

Returns the URL of the page.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | page ID | Number | Yes | ID of the selected page. |

## Return Type

**String**

The returned string is the URL of the selected page

## Example

```javascript
string url = getPageURL(11801);
```

## See also

> Macro (contentbylabel)