Closed iskolares closed 2 years ago
Right now we will be using the Learning Center as a workaround, as we can pass over a similar setup as query parameters and force a new tab when launching the link. We'd essentially like a similar feature with the Menu Items within the portal when launching external links as we would get with embedded links. This would allow for a seamless transition for our customers, and the ability to pass personalization to the other end for a better user experience.
You can query /api/v2/portal/user
in your transition page, then you know who that user is. Make sure add your transition page as part of CORS exclusion list. Under admin portal => Advanced => Developer Corner
You can query
/api/v2/portal/user
in your transition page, then you know who that user is. Make sure add your transition page as part of CORS exclusion list. Under admin portal => Advanced => Developer Corner
Can other non user APIs be pulled with this? We brand the pages moreover for each company on the transition not necessarily name? Thanks!
Here is more detailed procedure on how to achieve.
https://{deskdirector-domain}/api/v2/portal/user
. If 401 unauthorized display unauthorized.location.href = 'https://xxxx'
. In the user info, you will see user's company id, company name, user name, user id etc. As long as you have user's cookie. When query, if you encounter browser saying CORS, you cannot view the content of the API response, go to admin portal => advanced => developer corner to add your transition site's domain to the list. Then it should work as expected.
This has been implemented, to access go to staging admin portal. It should be live in staging 10 min later.
Normal admin link admin/v2
, staging admin link admin/staging
Query parameters can be added to "Extension Menu" menu item, but it's usage will be a bit limited because of it being iframed to the client portal.
Cust is asking if it's possible to also add "Query Parameters" when adding an extension link, so they can use it and not run into the restrictions there are on iframed extension menus.