Skip to content

Instant loading doesn't work well when jumping to local .html file #1653

@VVsxmja

Description

@VVsxmja

I checked that...

  • ... the documentation does not mention anything about my problem
  • ... the problem doesn't occur with the default MkDocs template
  • ... the problem is not in any of my customizations (CSS, JS, template)
  • ... there are no open or closed issues that are related to my problem

Description

When clicking a link to another local .html file (which is not generated by MkDocs) with instant feature on, the page won't load correctly.

Expected behavior

Instant loading should ignore that link.

Actual behavior

The page doesn't load correctly.

Steps to reproduce the bug

  1. Create a new MkDocs project.
mkdocs new test
  1. Set theme to "material" and enable "instant" feature.
theme:
  name: material
  features:
    - instant
  1. Create test.html.
<html>
    <body>
        <p>
            test
        </p>
    </body>
</html>
  1. Write a link to that page in index.md.
[test](/test.html)
  1. Run mkdocs serve and check that link.

Package versions

  • Python: 3.7.2
  • MkDocs: 1.1
  • Material: 5.1.0

Project configuration

site_name: Test

theme:
  name: material
  features:
    - instant

System information

  • OS: Windows 10
  • Browser: I've tried both Firefox and Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions