Aller au contenu principal

VertiGIS Studio Web: Enable URLs without App ID

Non planifiée

Commentaires

3 commentaires

  • Brandon Mol

    VertiGIS #19136

    0
  • Brandon Mol

    That person just came up with a tool to redirect based on a query parameter. Setting up redirect URLs is easy. That's not the issue.

    I did come up with two solutions that work, however:

    In both cases, first setup a reverse proxy rule for domain.com/someApp to proxy to backend.host/vertigisstudio/web

    Then do one of two things:
    1. Set up a redirect rule in the proxy or web server from domain.com/someApp/default.json to redirect to the proper item url for the app config in your ArcGIS Portal/Online. This does exactly what we need and makes it just work. Downside? Doesn't work with secured apps (they gotta be public), and it's a bit hacky, and VertiGIS will likely not want to support that and I don't like giving vendors any excuses 😃

    2. This is the one we are going forward with, a little less sexy but very functional. Use the app ID and the /someApp/ path segment together to validate the url at the proxy and if the app ID is missing or does not match what it should be for /someApp/ then redirect to /someApp/?app=properAppID.

    This way if we change the app ID for any reason, existing bookmarks will still work (will get redirected) and similarly if the app ID is not provided at all. It also means we don't have to track all the past app IDs, only the current one and everything else will redirect. We do something similar with various ArcGIS web apps since the IDs change on those all the time. Works great.

    0

Vous devez vous connecter pour laisser un commentaire.