Actions Redirect

Edit on GitHub

This document explains the Actions Redirect service in the Components Library.


Actions Redirect is an Angular Service that performs the hard redirect to the URL.

Check out an example usage of the Actions Redirect.

Service configuration:

  • type—an action type.
  • url—a URL to redirect.
        type: 'redirect',
        url: '',

Service registration

Register the service:

declare module '@spryker/actions' {
    interface ActionsRegistry {
        redirect: RedirectActionHandlerService;

    imports: [
            redirect: RedirectActionHandlerService,
export class RootModule {}


Below you can find interfaces for the Actions Redirect:

export interface RedirectActionConfig extends ActionConfig {
    url: string;