Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 9 days 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-10T02:45:58.000Z (about 9 years ago)
- Last Synced: 2023-08-06T05:21:28.122Z (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`)