GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
External Hyperlink


https://support.genopro.com/Topic38932.aspx
Print Topic | Close Window

By vlepore - Sunday, September 23, 2018
I inserted an external link between the data of an individual:  (e.g.   https://gw.geneanet.org/roberto63?lang=it&p=pietro&n=adamo&oc=4 )

In the individual's html page, the link becomes so, and obviously does not work:
"External Hyperlik: <a href='media/https://gw.geneanet.org/roberto63?lang=it&p=pietro&n=adamo&oc=4' ......"

Why "media/"? As if it were a picture?
Or did I do something wrong?
I think this is a recent anomaly, because I had never noticed.
Regards
By genome - Sunday, September 23, 2018
The code hasn't changed in a long time, in fact not since the secure HTTPS protocol became more popular.  The script only checked for http: not https:

Use the attached genomap.svg script in Narrative Common\Code folder to correct this.
By appleshaw - Sunday, September 23, 2018
The easier way to link the files is to use the system built into GenoPro; I have just tried it and it worked.
Select an individual in the first file; open Properties; select the Hyperlink tab; browse to the new file.
This will create an internal (PC only) link which will open the other file centered on the same individual. If you open the properties here and open the Family tab you can copy the Permanent ID. Return to the first file, open the Hyperlink tab of properties and add to the external hyperlink the phrase ?id= followed by the Permanent ID (where I used copy/paste )
Apologies for being over detailed but this might help others.
Also I realise it does not address your problem of creating a link that works generally but this should be the sort of format you need
By vlepore - Monday, September 24, 2018
thanks for the changes and for the answers Smile
By vlepore - Monday, September 24, 2018
I tried the genomap.svg fix: the external link from the genomap SVG was changed. But the problem was not this.
Sorry if I had not explained the problem well.

The problem concerns the html page of every individual!
With some difficulty, I realized that the correction must be made in util.vbs to the line 984.
I tried this correction and it seems to me that it works:

line 984: If  strLink = "http:" or strLink = "https"  or  strLink = "file:" or  mid(Lcase(obj.Hyperlink.Target),1,7) = "mailto:" Then
strLink = obj.Hyperlink.Target
Else
                                ....................
Greetings
By genome - Monday, September 24, 2018
Yes I misread your original post and also had forgotten about any external hyperlink also appearing in the Additional Information section of the Individual's page and so I wrongly assumed you were referring to the GenoMap link. 

Thanks for the update and I have attached the amended Util.vbs here in case anyone else needs it before an update appears in a GenoPro update.
By vlepore - Tuesday, September 25, 2018
Thanks Ron.
I do not know why, but now Google maps also work without API key.
Greetings
By genome - Tuesday, September 25, 2018
Yes Google Maps API seems to work initially but then the grey overlay returns after about 5 to 10 map requests.  Angry Sad
By NiKo - Wednesday, September 26, 2018
Thank you for including the code for Line 984.

For some reason, Windows Defender kept identifying the Util.vbs file as containing a Trojan when I attempted to download it.
By genome - Thursday, September 27, 2018
That is really strange.  I got exactly the same thing when I tried to download it.   I tried converting to a zip and uploaded that but on download Windows Defender blocked that too.

I even got the error when trying to re-save the file from my text editor.

So eventually I tried amending the script slightly by adding a comment line above line 984.

' check if external hyperlink
If  strLink = "http:" Or  strLink = "file:" Or mid(Lcase(obj.Hyperlink.Target),1,6) = "https:" Or            mid(Lcase(obj.Hyperlink.Target),1,7) = "mailto:" Then
strLink = obj.Hyperlink.Target

This time Windows Defender stayed silent and I was able to upload the (slightly) changed file.   I can only assume a checksum of the original file coincidentally matched that of a known virus.

Any way you should be able to download it now.