Skip to content

Empty md link make unworking site #8358

Closed

Description

@ialobanov

Have you read the Contributing Guidelines on issues?

Prerequisites

Description

If I use in doc.md empty link my site of docusaurus is not working properly.

Reproducible demo

No response

Steps to reproduce

  1. I create doc: general.md at doc section.
  2. In this doc I write an empty link like this: [google]() and save doc.
  3. I reload site and nothing work on site.

Expected behavior

No site freezing.

Actual behavior

No log errors, just site is freeze.

Your environment

Self-service

  • I'd be willing to fix this bug myself.

Activity

  1. added
    bug
    status: needs triage
    on Nov 21, 2022
  2. skirianov commented on Nov 21, 2022

    @skirianov

    I run the latest build and tried to reproduce it, but the error handler is taking care of that. Can you provide more data/screenshots?

    This is the test file I used

    ## TEST
    
    Empty link - [google]()
    Non empty link - [google.com](https://google.com)
    

    Path: /docs/general.md

    On save I've got the following error, the same error is displayed on the build
    Error: Markdown link URL is mandatory in "docs/general.md" file (title: google.com, line: 3).

  3. slorber commented on Nov 23, 2022

    @slorber
    Collaborator

    Please create a smaller stackblitz repro, not using Docker

  4. Josh-Cena commented on Dec 3, 2022

    @Josh-Cena
    Collaborator

    I'm going to close this as can't repro, because as @skirianov pointed out, you are likely getting an error from using an empty link. Maybe the error message is not propagated to your terminal, or you didn't check your terminal for the error.

  5. added
    closed: working as intended
    closed: question
    and removed
    bug
    status: needs triage
    closed: working as intended
    on Dec 3, 2022
  6. ialobanov commented on Dec 3, 2022

    @ialobanov
    Author

    Ok, sorry, I have no time to tried @slorber variant. Maybe on next week I try it and after leave comment here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed: question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions