• 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
routable_actions.rb 1.7 KB