'Password updated'
);
- return $this->redirect($this->generateUrl('config'));
+ return $this->redirect($this->generateUrl('config').'#set4');
}
// handle changing user information
'Information updated'
);
- return $this->redirect($this->generateUrl('config'));
+ return $this->redirect($this->generateUrl('config').'#set3');
}
// handle rss information
'RSS information updated'
);
- return $this->redirect($this->generateUrl('config'));
+ return $this->redirect($this->generateUrl('config').'#set2');
}
// handle tagging rule
'Tagging rules updated'
);
- return $this->redirect($this->generateUrl('config'));
+ return $this->redirect($this->generateUrl('config').'#set5');
}
// handle adding new user
sprintf('User "%s" added', $newUser->getUsername())
);
- return $this->redirect($this->generateUrl('config'));
+ return $this->redirect($this->generateUrl('config').'#set6');
}
return $this->render('WallabagCoreBundle:Config:index.html.twig', array(
return new JsonResponse(array('token' => $config->getRssToken()));
}
- return $request->headers->get('referer') ? $this->redirect($request->headers->get('referer')) : $this->redirectToRoute('config');
+ $this->get('session')->getFlashBag()->add(
+ 'notice',
+ 'RSS token updated'
+ );
+
+ return $this->redirect($this->generateUrl('config').'#set2');
}
/**
'Tagging rule deleted'
);
- return $this->redirect($this->generateUrl('config'));
+ return $this->redirect($this->generateUrl('config').'#set5');
}
/**