1

Glad that you managed to figure out a solution, which yes, does work. But you could make it more selectively, i.e. target just the specific pages, by using is_single( '<parent slug>/<child slug>' ), e.g. is_single( 'family-law/success-stories' ) in your case. Secondly, it's not exactly the redirect_canonical hook which caused the (301) redirect ...


Only top voted, non community-wiki answers of a minimum length are eligible