1.Clear MODX Cache: Go to Manage > Clear Cache in the MODX Manager.
2.Preview Links: Test each link to confirm it resolves to the correct page.
3.Make sure friendly_urls is enabled and .htaccess is configured.
Step 1: Work Example By Hand.
Step 2: Write Down What You Did.
Step 3: Find Patterns.
Step 4: Check By Hand.
Step 5: Translate To Code.
Step 6: Run Test Cases.
Step 7: Debug Failed Test Cases.