Skip to content

automatic external attribute for links in public/ folder #3831

Description

@danielroe

Is your feature request related to a problem? Please describe

got a report from someone who understandably added a link to a pdf in a page - but it just led to a 404

Describe the solution you'd like

given that links in markdown are static, we can detect at build time if it is an actual asset in public/ (or any of the nitro public asset dirs) and automatically add an external prop to ProseA

Describe alternatives you've considered

in nuxt v5 we'll likely do a hard reload (ie make it an external link) if a route isn't resolvable by vue router, but this won't work if there's a root catch-all route.

Additional context

Activity

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions