Route in the controller not working in case of no document exists in production mode

route in the controller not working in case of no document exists in production mode in the dev mode the template is shown but in the production mode redirects to home.

/**
* Creates a new Job Offer.
*
* @Route("/new-job-offer", name=“employer_new_job_offer”)
*/
public function newJobOfferAction(Request $request, Mailer $mailer) {

    return $this->render('AppBundle:jobs:new_job_offer.html.php', array(
        'form' => $form->createView(),
        'headTitle' => ''
    ));
}