title: Laravel Full calendar 5 - Clicking event takes me to URL/undefined
body: <p>My calendar loads just fine with all events. This is how I'm constructing it:</p>
  
  <pre><code>    $events = [];
  
      foreach($CalendarClasses as $Q){
  
          $events[] = Calendar::event(
  
              $Q-&gt;Classes-&gt;UserCourse-&gt;Course['code'],
              true,
              new \DateTime($Q-&gt;date),
              new \DateTime($Q-&gt;date)
  
          );
      }
  
      $calendar = \Calendar::addEvents($events);
  </code></pre>
  
  <p>Here's a sample event: </p>
  
  <p><code>"events":[{"id":null,"title":"CSC 422","allDay":true,"start":"2018-09-16T00:00:00+02:00"}]</code></p>
  
  <p>Whenever I click an event or attempt to trigger the eventPopover (<a href="https://fullcalendar.io/docs/event-popover" rel="nofollow noreferrer">https://fullcalendar.io/docs/event-popover</a>), I get redirected to <code>http://127.0.0.1:8000/dashboard/undefined</code></p>
  
  <p>I tried to use a callback as in </p>
  
  <pre><code>$calendar = \Calendar::addEvents($events)-&gt;setCallbacks([
              'eventClick' =&gt; 'function(event) {
               event.preventDefault(); }'
                  ]); 
  </code></pre>
  
  <p>But it's just not working. I don't need any eventClick events, I just want the popover to display and no events to be triggered when an event is clicked. What do I do?</p>
  
  <p>I'm using <code>fullcalendar/2.2.7</code>.</p>