@{
    string baseEditUrl = Context.String(DocsKeys.BaseEditUrl);
    FilePath editFilePath = Model.FilePath(Wyam.Web.WebKeys.EditFilePath);
    if(!string.IsNullOrWhiteSpace(baseEditUrl) && editFilePath != null)
    {
        string editUrl = baseEditUrl + editFilePath.FullPath;
        <div><p><a href="@editUrl"><i class="fa fa-pencil-square" aria-hidden="true"></i> Edit Content</a></p></div>
    }
    <div id="infobar-headings"></div>
}
@{
    string baseEditUrl = Context.String(DocsKeys.BaseEditUrl);
    FilePath editFilePath = Model.FilePath(Wyam.Web.WebKeys.EditFilePath);
    if(!string.IsNullOrWhiteSpace(baseEditUrl) && editFilePath != null)
    {
        if (!baseEditUrl[baseEditUrl.Length - 1].equals('/'))
        {
            baseEditUrl += "/";
        }
        string editUrl = baseEditUrl + editFilePath.FullPath;
        <div><p><a href="@editUrl"><i class="fa fa-pencil-square" aria-hidden="true"></i> Edit Content</a></p></div>
    }
    <div id="infobar-headings"></div>
}

Add handling for missing /
Add handling for missing /

If `DocsKeys.BaseEditUrl` in `config.wyam` is missing a forward slash at the end, a malformed edit address is produced.

For example,

`Settings[DocsKeys.BaseEditUrl] = "https://code.luzfaltex.com"`

Will result in a url like:

`https://code.luzfaltex.comlegal/privacy/index.md`