AnsweredAssumed Answered

URL for an "add page" link on a course home page

Question asked by Bill Lane on Mar 25, 2018
Latest reply on Mar 26, 2018 by James Jones

I've been tasked with adding an "Add Page" link to the course home page.  I haven't had any trouble adding the link but I don't think the link I'm using is ideal.  I've found that by linking to course/course_id/pages/anything/edit Canvas will take me to a new page editor with "Anything" inserted as the page title.  But I'm assuming that if I save the page with that title then my link will just edit that page in future rather than creating a new page.  Following this line of thought the next option would be to set "anything" to the current timestamp and then use jquery to clear the title when the page loads (which seems like a hack).

 

My question is what is the correct url to use to add a new page to a course?

Outcomes