Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where does it save the redirects? #15

Closed
psntr opened this issue Mar 3, 2022 · 1 comment
Closed

Where does it save the redirects? #15

psntr opened this issue Mar 3, 2022 · 1 comment
Assignees
Labels
good first issue Good for newcomers

Comments

@psntr
Copy link

psntr commented Mar 3, 2022

Hi,

I was wondering where do this plugin save the redirections?

@bnomei bnomei self-assigned this Oct 16, 2022
@bnomei bnomei added the good first issue Good for newcomers label Oct 16, 2022
@bnomei
Copy link
Owner

bnomei commented Oct 16, 2022

the structure is defined using the blueprint section.

site/blueprints/site.yml

sections:
  # ...other sections
  redirects:
    extends: plugin-redirects3xx

by default it loads from that structure as defined in the bnomei.redirects.map setting callback.

but since its a callback you could overwrite it to just load from a json/yaml file you manage yourself. thats why the php api like site()->appendRedirects(...) exists.

@bnomei bnomei closed this as completed Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants