If I run the Narrated Web Site (NWS) on my local WAMP server, it consists of HTML pages with URLs like http://navweb/ppl/6/8/e8c254ea53d3b16b1fe5b52a086.html, the http://navweb part being the virtual host on my WAMP server. This specific URL for example points to the page of a specific person with the GRAMPS id I014927.
Is there any way to use the person’s GRAMPS id as URL pointing to the person’s page? Or is there any way to compile a reference table that links a GRAMPS id with the NWS URL (e g I014927 pointing to ppl/6/8/e8c254ea53d3b16b1fe5b52a086.html)?
The pages created in the Narrative Web are created using the object’s handle in Gramps. The handle is the one unchangeable bit of information (unless you merge objects) in Gramps. Gramps uses handles, not Id’s, to link all of the various Gramps components together. Handles are created when the record is created and not accessible by the user.
One of the advantages to the handles, if you create a new NarrWeb three years from now, a person’s page in the narrweb will have the same url address. It may not be the same using the Id because you can change a record’s Id.
So, to answer your question, as of now, no. You cannot use the Id as the url address. You could file a feature request but that would be for future versions of Gramps.
The Narrated Website includes an option to include the Gramps ID on index pages. So this is a place where the ID and target are in the same place.
Maybe you should file a request for this tool to generate a Redirect page? So if the webmaster has access to Server Side redirects, they could use IDs in the URLs.
Ah – I didn’t recognize those handles because I’m accustomed to much longer ones. But then I feel my problem is solved. I can build a table linking the GID with the handle from the XML file and a redirector that is called with the GID and then calls the NWS page with the correct URL.