VaultWiki 4 does not provide a redirect BB-Code. Synonyms are used instead.
Any redirect that contains a line break would be invalid, which I suppose is why it wasn't imported. This behavior would be consistent with previous imports too. If you used a lot of invalid redirects in VW3, the following change would be needed in order to import them. In vault/core/controller/import/handle/vw3/page/vw.php, find:
20% of all redirects were not imported as synonyms but as 100 stub pages. Please see: /forum/wiki_index.php?title=Wiki-Redirects
You can find the original pages here: /forum/forumdisplay.php?f=190
It looks like there may have been several culprits here:
Redirects that contained a line break, such as: /forum/showthread.php?t=150874
Redirects that used NuWiki syntax, such as: /forum/showthread.php?t=78304
Pages that were not actually redirects, such as: /forum/showthread.php?t=232424
For #1, I have stated above that redirects with line breaks were not handled. We had never expected a valid redirect to contain a line break.
For #2, redirects using NuWiki syntax are only imported if VW3 had Options > VaultWiki: Legacy Options > Support Legacy Syntax = NuWiki. The only example I found of this was a URL conflict with #1, so it is not clear if these kinds of redirects were actually imported.
For #3, these were not redirects so they would not be imported as synonyms in any case.
A majority of the "stub pages" you refer to are a result of #3.
1. I will go through them on my live site and correct these as much as possible.
2. is this nuwiki syntax:
[REDIRECT]Category:pagename[/REDIRECT]
That is the syntax being used. I do not have nuwiki syntax active on my live site and have turned it off many years ago.
I see that a lot of redirects on my site are redirects to categories. This is done because VW3 does not autolink a category just by the pagename. But we need the category name to link to the category. Therefore a lot of redirects were created.
How can this be resolved in VW4?
NuWiki Syntax (requires NuWiki legacy support turned on in the source database):
Code:
#REDIRECT [wiki]Target[/wiki]
MediaWiki Syntax (requires MediaWiki legacy support turned on in the source database):
Code:
#REDIRECT [[Target]]
Of these, I only noticed the NuWiki variant, and I only found it in the one page that I linked above.
VaultWiki 4 does not require the "Category" prefix in front of category names (unless you setup your areas to require that). Because of this, the prefix (even if it's the word "Category") becomes meaningful. Once you are using VaultWiki 4, you may wish to rename the Category to the non-prefixed title variant. Then autolinks would point directly to the category without need for a redirect. For existing backlinks, still double-check that a redirect was automatically created from "Category:pagename" when you renamed it, or those existing links would be broken.
Then from now on, just use un-prefixed names for categories that should autolink.
This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.