Use special #mos URL fragments to trigger specific sections of MediaOS embedded tools on your website. These actions let you link users directly to areas like Account Info, Newsletters, Bookmarks, Login, and more — without any extra coding.
Why Use URL Actions? #
MediaOS URL Actions allow you to link users directly to parts of the embedded MediaOS tools — whether that’s to view purchases, manage subscriptions, or open the login screen. This is especially helpful for:
- Menus that link to “My Account,” “My Newsletters,” or “Login.”
- Buttons or CTAs in newsletters and campaigns.
- Guided user flows (e.g., prompting registration or newsletter sign-up).
These actions improve the user experience by reducing friction and ensuring users land exactly where you want them.
Tip: You can use these fragments in any URL on your site where MediaOS is embedded and initialized.
Supported #mos Actions URL Actions #
Use these fragments at the end of your URLs to trigger specific embedded sections:
URL Fragment | Opens/Triggers |
---|---|
#mosAccount | Opens the My Account section. |
#mosNewsletters | Opens the Newsletters preferences. |
#mosBookmarks | Opens the user’s Saved Bookmarks. |
#mosPurchases | Opens the Purchase History screen. |
#mosMemberships | Opens the Memberships panel. |
#mosSubscriptions | Opens the Active Subscriptions list. |
#mosBusinessListings | Opens the user's Business Listings. |
#mosEventListings | Opens the user's Event Listings. |
#mosRegister | Triggers the Registration modal. |
#mosLogin | Triggers the Login modal. |
#mosLogout | Logs the user out immediately. |
#mosPN | Triggers a push notification permission prompt (requires OneSignal setup). |
Note: These only work if the MediaOS embed script is properly included on the page and initialized. If a designated page is specified for things like checkout, login or register, the user will be redirected to those pages.
Example Usage #
You might place a link like this in a navigation menu:
<a href="https://yourdomain.com/#mosNewsletters">Manage Newsletters</a>
Tip: If users are not logged in, MediaOS will prompt them to log in before showing personalized account sections.
Troubleshooting #
If nothing happens when a URL action is clicked, make sure:
- The page includes the MediaOS embed script.
- The script loads before the user clicks the link (or reloads the page with the hash).
- You are not testing in a page that blocks JavaScript execution or hashes.
Tip: If your site uses a single-page app or a JavaScript router, make sure your framework does not strip or ignore the # fragment in the URL.