Fixed permalink so that the correct graphs are loaded when using a permalink with specific dates