lpa Posted February 10 Posted February 10 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.
bernhard Posted February 10 Posted February 10 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now