I'm working on creating sessions and having shareLinks redirect to some longer url. That way, a teacher educator can say they want to use the Turner scenario and give the site:
https://teachermoments.teachingsystemslab.org/teachermoments/turner?fromdemos
and get back a unique share link to give out to students:
https://teachermoments.teachingsystemslab.org/share/[some_random_string]
instead of having to tell students to go to the longer actual link:
https://teachermoments.teachingsystemslab.org/teachermoments/turner?fromdemos&share=[the_same_random_string_from_before]
The form looks like this:

I can generate the share links. And I have a database that connects the unique share links to their actual link. I have a page that shows what it should be redirecting to but I can't get the page to redirect.

I've looked at the enforceHTTPS in index.js but I still don't know where I'm going wrong. In inspecting the browser, I can see the 302 for redirecting and a 200 on redirect link but I can't figure out why it doesn't go to the page.


Any clues @kevinrobinson ?
Code can be found here: https://github.com/mit-teaching-systems-lab/threeflows/tree/patch/createSession
I'm working on creating sessions and having shareLinks redirect to some longer url. That way, a teacher educator can say they want to use the Turner scenario and give the site:
https://teachermoments.teachingsystemslab.org/teachermoments/turner?fromdemos
and get back a unique share link to give out to students:
https://teachermoments.teachingsystemslab.org/share/[some_random_string]
instead of having to tell students to go to the longer actual link:
https://teachermoments.teachingsystemslab.org/teachermoments/turner?fromdemos&share=[the_same_random_string_from_before]
The form looks like this:

I can generate the share links. And I have a database that connects the unique share links to their actual link. I have a page that shows what it should be redirecting to but I can't get the page to redirect.

I've looked at the


enforceHTTPSinindex.jsbut I still don't know where I'm going wrong. In inspecting the browser, I can see the 302 for redirecting and a 200 on redirect link but I can't figure out why it doesn't go to the page.Any clues @kevinrobinson ?
Code can be found here: https://github.com/mit-teaching-systems-lab/threeflows/tree/patch/createSession