Skip to content

Same configuration but different behavior in user relevant links #2076

@BrentHuang

Description

@BrentHuang

Environment

  • Version of Docsy you are using: v0.10.0
  • How are you using Docsy? As a:
    • Hugo module
    • NPM module
    • Git submodule
    • Other:
  • Version of Hugo you are using (output of hugo version): v0.134.0
  • OS:
    • Linux
    • macOS
    • Windows
    • Other:

Problem

in hugo.toml,

[params.links]
# End user relevant links. These will show up on left side of footer and in the community page if you have one.
[[params.links.user]]
name = "aa"
url = "https://cdn.pixabay.com/photo/2024/08/24/14/42/elephant-8994442_1280.jpg"
icon = "fa-brands fa-weixin"
desc = "aaa"
[[params.links.user]]
name = "bb"
url = "https://cdn.pixabay.com/photo/2019/09/15/04/23/rhinoceros-4477306_1280.jpg"
icon = "fa-brands fa-qq"
desc = "bbb"

When I click on aa it opens the jpg file in the browser, but when I click on bb it downloads the jpg file, why?
I would expect both to open the file in the browser, not download it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions