Ask AI
Skip to main content

Route to page

Function: Route to page

Redirect a user to another page within your application. This action allows you to control which page your users see next, and even pass specific information to that page.

Input

  • Template The specific page you want to send the user to. This is a required input.
  • Template parameters A collection of key-value pairs that represent data you want to pass to the target page. For example, you might pass an orderId to an "Order Details" page.
  • Force route A True/False switch. If set to True, the application will always redirect to the chosen page, even if the user is already on that page or if there are language differences that would normally prevent the route. If False, the system might try to find a language-matching version of the page or avoid unnecessary redirects.
  • Target Determines how the new page should open.
    • Self: Opens the new page in the current browser window or tab.
    • New window/tab: Opens the new page in a brand new browser window or tab.

Output

No direct output is returned by this action. The action's effect is the redirection of the user to the specified page.

Execution Flow

Real-Life Examples

Example 1: Simple Navigation to a Dashboard

Imagine you have a "Login" page, and after a user successfully logs in, you want to send them to their main "Dashboard" page.

  • Inputs:
    • Template: "Dashboard Page"
    • Template parameters: (empty)
    • Force route: False
    • Target: Self
  • Result: The application navigates the user to the "Dashboard Page" in the current browser window.

Example 2: Viewing Product Details with Specific Information

On an "All Products" page, a user clicks on a specific product to see its details. You want to route them to a "Product Details" page and show the information for the selected product.

  • Inputs:
    • Template: "Product Details Page"
    • Template parameters:
      • productId: "P-00123"
      • category: "Electronics"
    • Force route: False
    • Target: Self
  • Result: The application navigates to the "Product Details Page" in the current window, displaying the details for product "P-00123" from the "Electronics" category.

Example 3: Opening a Help Document in a New Tab

A user is filling out a complex form and needs to refer to a help document without losing their progress on the current page. They click a "View Help" button.

  • Inputs:
    • Template: "Help Document: Form Guidelines"
    • Template parameters: (empty)
    • Force route: True
    • Target: New window/tab
  • Result: A new browser tab opens, displaying the "Help Document: Form Guidelines" page, allowing the user to keep their current form open in the original tab.