• Michael Kozono's avatar
    Fix ensure_canonical_path for top level routes · f9785dce
    Michael Kozono authored
    Don’t replace a substring of the path if it is part of the top level route.
    
    E.g. When redirecting from `/groups/ups` to `/groups/foo`, be careful not to do `/grofoo/ups`.
    
    Projects are unaffected by this issue, but I am grouping the `#ensure_canonical_path` tests similar to the group and user tests.
    f9785dce
groups_controller_spec.rb 10.6 KB