Skip to content

Laravel package to handle Drupal redirects

Notifications You must be signed in to change notification settings

IN10/drupal-redirects

Repository files navigation

How to install

add to repositories in ocmposer.json

"drupal-redirects": {
    "type": "vcs",
    "url": "git@github.com:IN10/drupal-redirects"
}

in your project run

composer require IN10/drupal-redirects

endpoint will be at

/api/redirects/getRedirect

Query parameters:

source (required) without preceding /

language (optional)

Response:

{
    "language": "en",
    "source": "/the-source-path",
    "url": "/the-redirect-path",
    "statusCode": "301"
}

About

Laravel package to handle Drupal redirects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages