Link behavior for LMS-embedded page

11 views
Skip to first unread message

Oscar Levin

unread,
Aug 25, 2026, 2:48:43 PMAug 25
to PreTeXt development
Mostly for Mitch, but of course excited to hear from others.

The current LMS-embed feature of the HTML build gives an iframe code for an instructor to embed a particular page in an LMS page.  As part of this, we append a "?embed" query string to the URL which tells the javascript to hide the usual navigation, TOC, headers and footers (so the students just see the "inner" page).

This is great as long as you don't include xrefs as links on the page.  If a student clicks the xref for another page, then that takes them to that other page, still in the iframe, but now all the toc/navigation/etc is back.  It might even show with dark mode.

So what should happen instead?  We could append the same "?embed" string to every relative link (which I think is my preference), but that means that a student might get "lost" in the book (they could always reload the page or use the back button, but they might not be able to get back otherwise).  Or we could make all the links open in a new page. Or something else?

What would you like to see?

Oscar.

Mitch Keller

unread,
Aug 25, 2026, 2:57:15 PMAug 25
to prete...@googlegroups.com
My gut says appending ?embed to every relative link is the best option. Thinking about our use settings (and we keep finding more) for the LMS-embed feature, it would be nice to have xrefs to another page work, but we would prefer not to end up with the toc/navigation/etc. showing up. I think training students to reload if they get lost in something is a reasonable course of action.

--
You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/944afec3-f82b-4b2e-b907-fdd18ab53ac0n%40googlegroups.com.


Reply all
Reply to author
Forward
0 new messages