Jump to content
  • 0

How do I correctly link to my VA's pages on vAMSYS without causing errors?


George Peppard
 Share

Question

  • vAMSYS Platform Administrator

I want to link to pages on vAMSYS under my airline (for example, the notices page, or a resource I have created in the Page Editor) however it causes errors or does not work if my pilots do not have my airline selected before they navigate to the link!

What is the correct way for me to link to pages on vAMSYS so that it works reliably?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
  • vAMSYS Platform Administrator

vAMSYS 3.8.0 added the functionality to allow the "force airline" parameter. This allows any request to vAMSYS to have an optional parameter appended to the URL which will force the session to fall under your VA before further page logic is processed.

How do I add this to my links?

Take a simple link - for example, https://vamsys.io/resources/mycustompage. Ordinarily, this would result in a 404 if a user accessed it via any airline other than yours, which could cause confusion among your pilots, especially if they are a member of multiple VAs.

Not to worry though - we just need to add the force airline parameter to the URL: https://vamsys.io/resources/mycustompage?select=ABC.

This will force the user, when navigating to this page, to have my airline (in this case, the airline with the prefix ABC) selected - and they will be able to access the page.

How does this work?

For information on how this process works, see the following flow chart:

Flowchart.png.1b15a7e523db49380f7856f95cfb6f05.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...