Jump to content

Recommended Posts

Posted

When having PagePathHistory module installed and moving a whole subtree of pages to a new location, should all the children get correctly redirected too?

Old situation:
- FrontPage
-- /2024/
-- /2024/somepage/
-- /oldyears/

New situation:

- FrontPage
-- /2025/
-- /oldyears/2024/
-- /oldyears/2024/somepage/

What happens when accessing /2024/somepage/? I think it should be redirected to /oldyears/2024/somepage/, but I think it gives me a 404 error.

Posted

I'm not sure, but I don't think it supports redirects for subtrees. But you could easily solve that by adding an url hook to /{year}/{page}

That hook will not fire for /2025/... as this page exists, and for all other years you can make it look for the page at /oldyears/$year/$page and redirect to that page if it exists.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...