Shorten startup URL.
Folks,
I'm attempting to shorten the long url that is launched from the preview options in the manager, so that this url is not exposed in the browser on the tablet etc. I've tried hard-coding the tablet.html page with the viewer config uri.. taking out the default...
ie.
var viewerConfig = {
"configurations": {
//"default": "Resources/Config/Default/" + shellName + ".json.js"
},
"viewerConfigUri": "http://xxxxx/Geocortex/Essentials/REST/sites/state_overview_external/viewers/state_overview_external_html/virtualdirectory/Resources/Config/Default/Tablet.json.js"
};
is it as simple as this?
cheers
Gareth
-
Hi Gareth,
See the KBA here - https://support.geocortex.com/how-to-shorten-the-viewer-for-html5-url
regards,
Edmond
0 -
Thanks Edmond for the speedy response!
I'll give that a try!
I just got it working also by hard-coding the \resources\config\default\Tablet.json.js file with
"configuration": {
//"siteUri": "http://sampleserver1.geocortex.com/geocortex/essentials/Rest/sites/CharlotteArcGISOnline"
"siteUri": "http://xxxxx/Geocortex/Essentials/REST/sites/emap_mobile"
}and 've been able to start it with http://xxxxx/html12/tablet.html - which is a big improvement but it would seem the documented approach is more flexible
thanks
Gareth
0 -
yep - all good Edmond... works a charm!
thanks again
GF
0
Please sign in to leave a comment.
Comments
3 comments