Skip to content

Issue loading sidebar content - first link always shows as empty #10

@BanditTech

Description

@BanditTech

Bug Report

Steps to reproduce

Load into a docsify page, click on a sidebar entry loading a file / subdirectory
refresh the page at the current location

click on another item on sidebar,

content within the file will not populate the sidebar as a list

click on any further sidebar items after the first

content will populate as expected

What is current behaviour

When loading the page at a subdirectory, the first sidebar entry will not load its contents into the sidebar

What is the expected behaviour

Whether loaded into any page on the site, it will always populate the content of the file into the sidebar. It is strange that its always the first item to click.

Other relevant information

This issue is occuring because of the line :
(${this.responseText} \n # {docsify-ignore-all})

I tracked down the issue to this plugin. When loading the first link on a page, it will actually load the changelog function for some reason. It will then insert the contents of the changelog into the first subsection clicked. I tried messing around with different things to try make this resolve but no clue how to make this plugin load properly.

The way it should load is only when clicking the actual nav link.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions