Source template field following a "/" not working

I’ve been using RM for a while but this is my first post. As a new poster, I can only post one image, so hopefully my explanation is clear enough

I am updating my Find a Grave source template to match EE 4th edition and the resulting URL is not correct.

My source template is below (pardon my poorly named fields, its a work in progress… :pleading_face:):

Find a Grave, database with images (www.findagrave.com/memorial/[MemorialNum] : [AccessDate]), “[memorial]” ([dates]), memorial created by “[createdby],” with tombstone image by “[photoby]”; citing [cmtrynm], [cmtryloc]

Instead of displaying the value of the field [MemorialNum] in the URL, I get the field tacked onto the end of the URL.

Thinking it was an escape sequence issue, I tried using two slashes but the result is the same. Dropping the forward slash before the field displays the field value but it’s not a valid URL.

I’ve concluded it’s the combination of “/[” that’s breaking the template. I didn’t find anything in the help that would fix the issue.

For the time being, I’m leaving the last forward slash out of the template and including it in the memorial number field

Thanks

Use three slashes before the variable name:

www.findagrave.com/memorial///[MemorialNum]
1 Like

TomH -

Unfortunately that didn’t fix the problem

Just found the help section on escape characters. I don’t think there is a way around this without changing the order the template is proccessed.

If you ever want to write an actual <, >, /, [, or ] in your sentence, you must precede it by a “/”. This tells RootsMagic that to print the following character and to not treat it as a switch or a field. For example:

I found a way to make it work using switches:

1 Like

Oh thanks I will need to play with that to get mine working

Kevin

Hmm. It works in an Event sentence template and I thought I had used it in a source template sentence years ago. False memory or the software degraded.

Congrats on finding a workaround.

Would this do?
The website as www.findagrave.com. This will leave () with no data entry and you may need to force lower case on www.

<?[URL]|([URL]<?[MemorialNum]|/memorial/>|(>[MemorialNum])