Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Maintenance] Docs update for new JS API #130

Merged
merged 1 commit into from May 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion docs/API/fliplet-core.md
Expand Up @@ -725,9 +725,18 @@ Fliplet.Pages.get().then(function (appPages) {
});
```

### Get the public URL of the current app

Use the `Fliplet.App.getPublicSlug()` method to get the public URL of the current app. Note that this only works if you have enabled shareable URLs via Fliplet Studio under the App Settings.

```js
// e.g. "https://apps.fliplet.test/foo-bar"
var url = Fliplet.App.getPublicSlug();
```

### Get the public URL of the current screen

Use the `getPublicSlug()` method to get the public URL of the current screen. Note that this only works if you have enabled shareable URLs via Fliplet Studio under the App Settings.
Use the `Fliplet.Page.getPublicSlug()` method to get the public URL of the current screen. Note that this only works if you have enabled shareable URLs via Fliplet Studio under the App Settings.

```js
// e.g. "https://apps.fliplet.test/foo-bar/my-screen-abc"
Expand Down
4 changes: 4 additions & 0 deletions docs/Changelog.md
Expand Up @@ -4,6 +4,10 @@ Each week, we provide changelog notes on this page giving a summary of recent si

## May 2020

### May 26th

- Added new documentation for the [Fliplet.App.getPublicSlug()](https://developers.fliplet.com/API/fliplet-core.html#get-the-public-url-of-the-current-app) method.

### May 11th

- Published new documentation on [Fliplet URLs and IP Addresses](https://developers.fliplet.com/URLs-and-IP-Addresses.html).
Expand Down