Closed pparik closed 1 year ago
Interesting. It might take some time for me to get to this. If you don't hear from me after a while, feel free to bug me again by adding a comment to this issue.
Fixed! The plugin should now work when you have the same pattern in two namespaces.
In the future, I might consider adding more direct translation plugin compatibility, so you don't have to include the same pattern multiple times.
Thank you! Updated and working :)
I use the Translation plugin, so the pages have the same name except for the root namespace (cs: or en:). I have configured the Auto Link plugin to create links to the appropriate translation like this:
but this always creates links to
cs:ref:name:i1
, even inen
namespace. If I switch the two lines, then all links are created toen:ref:name:i1
. So there is clearly a bug with duplicate patterns where the page name in the first pattern+namespace definition is used regardless of the actually matched pattern+namespace definition.