Skip to content

[Bug] Invalid Edit-this-page URL after update to docfx v2.72.0 #9337

Description

@bkoelman

Comparing the generated website with the output from 2.71.1:

  1. Incorrect remote URL: "json-api-dotnet" changed to "verdie-g" (which is a fork of the project that I cloned a while ago)
  2. Backslashes instead of forward slashes: "/api/index.md/#L1" changed to "\api\index.md/#L1"

Before update:

<meta name="docfx:docurl" content="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/docs/api/index.md/#L1">
...
<a href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/docs/api/index.md/#L1" class="edit-link">Edit this page</a>

After update:

<meta name="docfx:docurl" content="https://github.com/verdie-g/JsonApiDotNetCore/blob/master/docs\api\index.md/#L1">
...
<a href="https://github.com/verdie-g/JsonApiDotNetCore/blob/master/docs\api\index.md/#L1" class="edit-link">Edit this page</a>

Context:

  • OS: Windows
  • Docfx version: 2.71.1

Output from git remote -v:

github-desktop-verdie-g https://github.com/verdie-g/JsonApiDotNetCore.git (fetch)
github-desktop-verdie-g https://github.com/verdie-g/JsonApiDotNetCore.git (push)
origin  https://github.com/json-api-dotnet/JsonApiDotNetCore.git (fetch)
origin  https://github.com/json-api-dotnet/JsonApiDotNetCore.git (push)

Output from git config --get remote.origin.url:

https://github.com/json-api-dotnet/JsonApiDotNetCore.git

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions