export default {
  group: 'specific',
  fn: ({ to, from, router }) => {
    const { content, uuid } = to.params

    if (content === 'franchised_spaces_folders') {
      const space = from.path.replace(/\//, '')

      router.push({
        name: 'EditFranchisedSpacesFolders',
        query: { uuid, space }
      })
    }
  }
}
