Skip to content

Z105: ABSOLUTE_PATH

  • Severity: Error


    Penalty: 0.0 points | Category: general

  • Remediation & Opt-In


    Auto-Fixable: No | Opt-In: No


Rationale

This rule is triggered when internal links or asset paths use absolute filesystem paths or root-relative paths (e.g. /docs/setup.md or C:\project\docs\setup.md).

Absolute paths break portability across different operating systems, CI build runners, and subpath web deployments.


How to Fix

Inspect the flagged location in the Markdown file and update the content or configuration:

  • Failing Pattern (Triggers Z105)


    docs/example.md
    <!-- BAD: Absolute root-relative path specifier -->
    Read the [Setup Guide](/docs/how-to/setup.md).
    
  • Passing Pattern (Resolves Z105)


    docs/example.md
    <!-- GOOD: Portable relative path calculated from source file -->
    Read the [Setup Guide](../how-to/setup.md).
    

Configuration

.zenzic.toml
# Enforced across workspace when strict mode is active
strict = true

Reference

See the Finding Codes Index for finding code details.