I have D7 with FullCalendar (7.x-2.0) installed. When viewing a month view and clicking on an event, the event opens in a whole new browser tab (no matter what browser I'm using).

I don't want that, I want to stay in the same tab. I read at http://arshaw.com/fullcalendar/docs/mouse/eventClick/ that I could change the "self" value from False to True. See below,I did that in fullcalendar.fullcalendar.js and now the link opens itself in the existing tab AND a new tab both.

How do I get this to work the way I want? Thank in advance for any help you can give me.

var options = {
  eventClick: function (calEvent, jsEvent, view) {
    if (settings.sameWindow) {
      window.open(calEvent.url, '_self');
    else {
    return false;

In view edit, click on FullCalendar settings under Layout. There is an option to open events in new window.

FullCalendar Settings

| improve this answer | |
  • That was just the ticket. THank you very much!!!! – Dave N May 22 '14 at 1:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.