# Generate Current Page Link

> This page is about FlutterFlow Studio (the visual builder), not FlutterFlow (the app builder you use by describing your app).

URL: https://docs.flutterflow.io/concepts/navigation/generate-current-page-link

Learn how to generate the current page link in your FlutterFlow Studio app.

The action creates a link to the page that the user is on, with the page's current parameter values. It returns the link in the action output **Current Page Link**, which you can pass to the [Share](https://docs.flutterflow.io/concepts/navigation/share-action) action.

<figure>
    <img src="https://firebasestorage.googleapis.com/v0/b/ecommerceflow-docs/o/dynamic-link-demo.gif?alt=media&token=f6aee025-782a-45b9-baa6-3d357ca30cec"></img>
  <figcaption>Sharing and opening a dynamic link</figcaption>
</figure>

:::note[Prerequisites]

To create short links with link previews and store redirects, first perform all the steps to [**set up FlutterFlow Studio Dynamic Links**](https://docs.flutterflow.io/concepts/navigation/flutterflow-dynamic-links#set-up-flutterflow-studio-dynamic-links). Without FlutterFlow Studio Dynamic Links, the action can return only an [**ordinary app deep link**](#use-the-action-without-flutterflow-studio-dynamic-links).
:::

## Adding Generate Current Page Link action

Go to your project page on FlutterFlow Studio and follow the steps below to define the Action to any widget.

1. Select the **Widget** (e.g. share button) on which you want to define the action.

2. Select **Actions** from the [Properties Panel](https://docs.flutterflow.io/flutterflow-ui/builder#properties-panel) 
   (the right menu), and click **Open**. This will open an **Action flow Editor** in a new popup window.
	1. Click on the **+ Add Action**.
	2. On the right side, search and select the **Generate Current Page Link** action and click 
	   **Close**.

The action has the following options:

- **Link Preview Properties**: the **Title**, **Preview Image**, and **Description** that chat and social apps show for the link, and a **Name** that labels the link on the **Links** tab.
- **Skip Preview Page**: under **iOS Settings**, sends people who open the link in a browser on iOS straight to the App Store, without the preview page first. Leave it off so that people who open the link in apps such as Instagram or Facebook can still tap **Open in app**. For more information, see [FlutterFlow Studio Dynamic Links](https://docs.flutterflow.io/concepts/navigation/flutterflow-dynamic-links#open-links-on-ios-from-in-app-browsers).
- **Campaign (optional)**: the **Source**, **Medium**, **Campaign Name**, **Term**, and **Content** values that the **Analytics** tab groups traffic by. You can set each one from a variable.

FlutterFlow Studio Dynamic Links are always short, so the action doesn't show the **Generate Short Link** option.

![ff-dynamic-links-action.png](https://docs.flutterflow.io/assets/images/ff-dynamic-links-action-d6343227625d670ae066347a8c3a0ebd.png)

## Use the action without FlutterFlow Studio Dynamic Links

Firebase Dynamic Links has been retired, and a saved **Use Firebase Dynamic Links** setting no longer turns the service on. If FlutterFlow Studio Dynamic Links isn't configured for your project, the action shows a **Generate Short Link** switch and a warning in the action's properties.

- **Generate Short Link** off: the action returns an ordinary app deep link. The link is built from your app's URL scheme and host, and keeps the page's route, query parameters, and fragment. It has no link previews and no store redirects. The project shows a warning that explains this, but the app builds.
- **Generate Short Link** on: the action can't generate a link. The project shows an error until you either turn the switch off or configure FlutterFlow Studio Dynamic Links in **App Settings > Dynamic Links**.

If you configure FlutterFlow Studio Dynamic Links later, the action creates short links and the **Generate Short Link** switch no longer appears. To move a project over, see [Move from Firebase Dynamic Links](https://docs.flutterflow.io/concepts/navigation/flutterflow-dynamic-links#move-from-firebase-dynamic-links).
