Skip to content

Commit

Permalink
Merge pull request #1 from VBeytok/VBeytok-patch-1
Browse files Browse the repository at this point in the history
add ap.redirect
  • Loading branch information
VBeytok authored Nov 19, 2024
2 parents 73003db + caaebf9 commit a3fd03e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/content/docs/developer/crowdin-apps/apps-js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,30 @@ Properties:
</tbody>
</table>

### AP.redirect(path) {#redirect}

The method redirects the user to a specified path within the application.

Example:

```js
AP.redirect('/profile');
```

Properties:

<table>
<tbody>
<tr>
<td><code>text</code></td>
<td>
<p><strong>Type:</strong> <code>string</code></p>
<p><strong>Description:</strong> The relative path to which the user will be redirected.</p>
</td>
</tr>
</tbody>
</table>

## Editor Module Actions

Editor module actions provide a possibility to get information from the Editor UI. These actions are available only on pages that are loaded in an iframe in the Editor-panels module.
Expand Down

0 comments on commit a3fd03e

Please sign in to comment.