Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.11 KB

installation.md

File metadata and controls

42 lines (28 loc) · 1.11 KB

Installation

Install bundle using composer:

composer require sulu/redirect-bundle

Add bundle to config/bundles.php:

Tip: If community flex recipes are enabled, this should be done automatically.

    Sulu\Bundle\RedirectBundle\SuluRedirectBundle::class => ['all' => true],

Add routing files to config/routes/sulu_redirect_admin.yaml:

Tip: If community flex recipes are enabled, this should be done automatically.

sulu_redirect_api:
    type: rest
    resource: "@SuluRedirectBundle/Resources/config/routing_api.yml"
    prefix: /admin/api

sulu_redirect:
    resource: "@SuluRedirectBundle/Resources/config/routing.yml"
    prefix: /admin/redirects

Create necessary database tables

php bin/console doctrine:schema:update

Configure user roles in Sulu

Make sure that the user roles for redirects are set in Sulu for relevant users roles, otherwise the item is not visible in the navigation and the users are not able manage the redirects.

image