Skip to content

Wrong paths in 404 page on mkdocs.org #1785

@froschdesign

Description

@froschdesign

Good:

https://www.mkdocs.org/foo

www mkdocs org_foo

Bad:

www mkdocs org_foo_

The problem are the paths because it points to the wrong target. Examples:

<link href="css/bootstrap-custom.min.css" rel="stylesheet">
<script src="js/bootstrap-3.0.3.min.js" defer></script><a href="user-guide/writing-your-docs/"></a>

The template filter URL does not help here.

<link href="{{ 'css/bootstrap.min.css'|url }}" rel="stylesheet">

https://github.com/mkdocs/mkdocs/blob/master/mkdocs/themes/mkdocs/base.html#L20

Any ideas to prevent the problem on the mkdocs.org and also in the used theme? Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions