-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page renaming breaks inclusion #276
Comments
The links are already registered by the include plugin… Lines 327 to 329 in dffff5e
|
Does this mean that it should work (and we might have some other kind of issue at our site), or that the implementation in the include plugin is only partially complete/working? |
Yes I would expect that it works. If it does not, something is going on. Could you please share a minimal example of pages with their minimal content which I could create, to replicate your situation? |
I have no idea, how this "automatic rewriting" of renamed pages works, but could the issue be related to #251? |
Sure! |
This is possibly related but I have found that when using and then using Move plugin to change the name of the pages the include statement changes to adding "changed:namespace:path" to the "some_tag" which is obviously creating a nonsense include statement that mixes namespace and tag. |
I can reproduce this on "Jack Jackrum". The only difference to the example above was that I did everything in the namespace After renaming the page |
I just added a commit that implements registering the "relation_references" key for the included pages in the indexer. The move plugin and the backlinks page (see #251) lookup this meta key in the indexer. Right now the include plugin updates the meta data for the relation of the page - but this does not automatically get inserted into the index (see https://www.dokuwiki.org/devel:metadata#metadata_index). This seems to fix the move adaption of the link in the include syntax. I'll test this and create a pull request after validation. Edit: |
When pages are renamed (using the
move
plugin), the ID doesn't change in the include directive, thus breaking the inclusion. Since there seems to be a mechanism to update page IDs automatically (e.g. in internal links), maybe this mechanism could also be used by theinclude
plugin?DW version is Hogfather,
move
andinclude
plugin are up to date.The text was updated successfully, but these errors were encountered: