You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a good calendar package, just want to share the problem encountered and how to solve it. If you set segment to true and have problem navigating to the next or prev month due to duplicated year and month parameters url.
In vendor\gloudemans\calendar\src\Gloudemans\Calendar, change line 26 from
$this->next_prev_url = $request->url(); to
$this->next_prev_url = $request->root().'/'.$request->segment(1);
The text was updated successfully, but these errors were encountered:
meltz
changed the title
Solution and problem for using segments = true
Problem and solution for using segments = true
Jul 31, 2014
@meltz: Your solution only works when the calendar is on a page that has a URL that consists of only a single segment. It'd be handy if there were a config option for setting the base url of the page that the year and month parameters get appended to. I'll try to find time to put together a pull request soon.
This is a good calendar package, just want to share the problem encountered and how to solve it. If you set segment to true and have problem navigating to the next or prev month due to duplicated year and month parameters url.
In vendor\gloudemans\calendar\src\Gloudemans\Calendar, change line 26 from
$this->next_prev_url = $request->url(); to
$this->next_prev_url = $request->root().'/'.$request->segment(1);
The text was updated successfully, but these errors were encountered: