Shortened URL isn't working
This:
https://sgis.wellington.ca/Html5Viewer_2_0/?viewer=economicdevelopmentemployment
Does not take me to this:
https://sgis.wellington.ca/Geocortex/Essentials/REST/sites/EconomicDevelopmentEmploymen/viewers/
EconomicDevelopmentEmployment/virtualdirectory/Resources/Config/Default/
Even though I have set up this:
var viewerConfig = {
"configurations": {
"default": "Resources/Config/Default/" + shellName + ".json.js",
"economicdevelopmentemployment":
"https://sgis.wellington.ca/Html5Viewer_2_0/index.html?
configBase=https://sgis.wellington.ca/Geocortex/Essentials/REST/sites/EconomicDevelopmentEmploymen/viewers/
EconomicDevelopmentEmployment/virtualdirectory/Resources/Config/Default/" + shellName + ".json.js"
},
"viewerConfigUri": null
The long URL works on its own. The shortened URL just sits after the splash screen comes up.
Someone please help!
-
Hi Paul, give the following a try:
"configurations": {
"default": "Resources/Config/Default/" + shellName + ".json.js","economicdevelopmentemployment": "https://sgis.wellington.ca/Geocortex/Essentials/REST/sites/EconomicDevelopmentEmploymen/viewers/EconomicDevelopmentEmployment/virtualdirectory/Resources/Config/Default/" + shellName + ".json.js"
},
Then your shortened URL should work.
Cheers,
Matthew
0 -
Matthew - thanks!
0 -
Hey guys - I'm having a similar issue. Launching from the link within manager the site loads fine. When I try the shortened URL, the splash screen loads but then stops and nothing else happens. Here's my modified code from index.html:
var viewerConfig = {
"configurations": {
"default": "Resources/Config/Default/" + shellName + ".json.js","Public_Html":
"http://maps.rdos.bc.ca/Geocortex/Essentials/REST/sites/Public/viewers/Public_Html/virtualdirectory/Resources/Config/Default/" + shellName + ".json.js"
},
"viewerConfigUri": null
};Is there something obvious I've overlooked? Something else I can check?
0 -
Hi Rebecca,
Change "Public_Html" to be all lowercase and it should work. It doesn't have to be lower case in the URL, just in the viewerConfig block.
-Jason
0 -
Thanks Jason. That worked in terms of displaying on the desktop. It still loads only the splash screen and then stops when I try it on an Android device though. Any thoughts on that?
0 -
Correction. It works on my Android tablet but not my Android phone.
0
Please sign in to leave a comment.
Comments
6 comments