https://github.com/lesaff/statamic-redirect_to
Statamic Addon to automatically redirect page to the first child
https://github.com/lesaff/statamic-redirect_to
Last synced: 5 months ago
JSON representation
Statamic Addon to automatically redirect page to the first child
- Host: GitHub
- URL: https://github.com/lesaff/statamic-redirect_to
- Owner: lesaff
- Created: 2015-09-10T02:44:48.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-10T02:45:58.000Z (almost 11 years ago)
- Last Synced: 2024-12-29T22:36:45.946Z (over 1 year ago)
- Language: PHP
- Size: 105 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Statamic Addon to automatically redirect page to the first child
By Rudy Affandi (2015)
Version 1.0.0
## What is this?
`redirect_to` redirects page to its first child
## Changelog
- 1.0.0: Initial release
## Installation
Copy the `redirect_to` folder to the `_add-ons` folder in your Statamic website.
## How to use
Use the following single tag in your template.
`{{ redirect_to response="301" }}`
### Available parameters
`response` By default, this is set to `302`. Options (`301`, `302`)