Jump to Content
LocomotiveCMSGuidesDiscussionSupport us!v2
GuidesBlogDiscussions
GuidesDiscussionSupport us!v2Log InLocomotiveCMS
Guides
Log In
Other methods

Get started

  • Quick start
  • Install Locomotive Engine
  • Install on Heroku

Templates

  • Pages
  • Page inheritance
  • Layouts
  • Snippets
  • Assets

Content types

  • Define a content type
  • Relate two content types
  • Use them in templates
  • Filter and Paginate

Liquid API

  • Introduction
  • Logic
  • Drops
  • Standard filters
  • Filters
  • Tags

Actions API

  • Introduction
  • Liquid variables
  • Session variables
  • Content entries
  • Emails
  • External API
  • Other methods

Authentication

  • Introduction
  • Setup
  • Actions
  • Liquid helpers

Wagon

  • Create a site
  • Authenticate
  • Deploy a site
  • Synchronize content
  • Backup a site
  • Delete resources
  • Preview locally

Guides

  • Domains
  • Create a contact form
  • Localization
  • Site metafields
  • Protect a site by a password
  • Create a RSS feed
  • Install Wagon using Devstep and Docker
  • Upgrade to v3
  • Custom rendering

User Guides

  • How do I change the language of my user interface ?
  • How do I change my password?

Changelogs

  • version 3.3
  • version 3.2
  • version 3.1
  • version 3.0
Powered by 

Other methods

Suggest Edits

redirectTo

Description

Stop the rendering of the current page and redirect the user to another Locomotive page. This page is specified by its handle.

Usage

redirectTo(<page handle>, <locale>);

Note: the locale argument is optional.

Example

{% action 'Basic redirection' %}

if (params.confirmed)
  redirectTo('home');

{% endaction %}

Updated less than a minute ago


  • Table of Contents
    • redirectTo
    • Description
    • Usage
    • Example