Skip to content

Conversation

@iamgio
Copy link
Owner

@iamgio iamgio commented Dec 4, 2025

Previously, including a file in another directory would not affect the working directory, which was still the caller's.

Now, as it already happens with subdocuments, included files use their own base path.

Consider the tree:

main.qd
image.png
dir/
|  other.qd

With main.qd:

.include {dir/other.qd}

Previously, in order to access image.png from other.qd:

![](image.png)

Now, correctly:

![](../image.png)

This little change brings substantial changes:

  • .include now creates a SharedContext with a modified FileSystem, while before it was just using the caller's context
  • LinkUrlResolverHook updates the path of affected links, and stores them in ResolvedLinkUrlProperty

@iamgio iamgio added the enhancement New feature or request label Dec 4, 2025
@iamgio iamgio merged commit 0c69fa1 into main Dec 5, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants