---
schema_version: "1"
id: 30435d2279289a179f46b607163abd877a3a2afa9d68071dd2912e4e5f85a2de
title: Choosing Between Lightning and Non-Lightning Flow URL Formats
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_distribute_internal_url_lightning_vs_lightning_out.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_distribute_internal_url_lightning_vs_lightning_out.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 74e3aff0a07df36815cf142e0fe380c3babd6af23d08511e84baef6ebce054dc
description: When you run a screen flow from a URL, you can choose between using Lightning or the non-Lightning URL format, which uses Lightning Out. We recommend using Lightning for a faster, more consistent experience. However, there are times when you need to use the non-Lightning format.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Choosing Between Lightning and Non-Lightning Flow URL Formats

When you run a screen flow from a URL, you can choose between using Lightning or the non-Lightning URL format, which uses Lightning Out. We recommend using Lightning for a faster, more consistent experience. However, there are times when you need to use the non-Lightning format.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr></tbody></table>

When you distribute a screen flow by using a URL, such as from a button, or link, you have two options for how the flow runs.

- Add `/lightning` to the beginning of the flow URL. For example, `/lightning/flow/My_Flow`. The flow runs inside Lightning Experience.
- Use the flow URL without `/lightning`. For example, `/flow/My_Flow`. The flow runs using Lightning Out.

We recommend adding `/lightning` to your flow URLs because running your flow in Lightning gives you several benefits.

## Faster Performance

When you run a flow in Lightning, most of the required components are already loaded in the browser. This setup eliminates the need for a full page load, so your flow screen loads faster.

## Keep Users in Their Current Context

Running the flow in Lightning keeps users where they are in Salesforce. If users are working in Lightning Console, for example, they can keep their existing tabs open while the flow runs. Users can even switch to other tabs in Lightning Console while a flow is running, which is useful when they're working on a case or ticket and need to reference other details.

If you don't use Lightning, users navigate away from their current page, which can disrupt their workflow.

## Avoid Browser Navigation Issues

If a flow runs in Lightning, there's no risk of breaking the browser's history state. Users can use the back and forward buttons as expected. When you go to a different page outside of the current Lightning app, it can cause unexpected behavior with browser navigation.

## Consistent Behavior with Lightning Experience

Running flows in Lightning makes sure that your flow behaves consistently with the rest of Lightning Experience and Lightning Console. Your flow also matches the look and feel of your org's styling. You can also use local actions in your screen flow, such as showing toast notifications or opening records in the same window.

## Avoid Lightning Out Limitations

If your screen flow uses standard screen components, and does run in Lightning, it's impacted by Lightning Out limitations that can affect how your flow works. [Learn more about Lighting Out limitations in the Lightning Web Components Developer Guide](https://developer.salesforce.com/docs/platform/lwc/guide/lightning-out-considerations.html).

## When to Not Use Lightning

There are some cases when you can't add `/lightning` to the URL. In both cases, don't include `/lightning` or the `flow__` prefix in your URL.

- You want to set values for items in a collection variable, other than sending a list of IDs from a list view to a collection variable called ids. Sending IDs from a list view to the ids collection variable is supported in Lightning. To learn more, see [Send Variable Values to a Flow Using the Flow's URL](https://help.salesforce.com/s/articleView?id=platform.flow_distribute_internal_url_variable.htm&release=264.0.0&type=5 "When you distribute a flow by using a URL, you can set variables values within that flow by using parameters in the URL.").
- You want to run a flow from a navigation tab (web tab). To learn more, see [Embed a Screen Flow in a Navigation Tab in Your Org](https://help.salesforce.com/s/articleView?id=platform.automate_flow_distribute_internal_url_web_tab.htm&release=264.0.0&type=5 "Add an active screen flow to a navigation tab in your org, using the flow's web address (URL). Users can open the tab and then run the screen flow from there.").