Hi everyone,
Due to the lack of other sensible Python wiki solution, I'm now plunging head first into django-wiki. The long-term plan is some way to edit ‘choose your own adventure’ stories, and to get meaningful editing, I'm trying to implement some what-links-where functionality in django-wiki now as a plugin.
However, I'm confused. I looked into some of the existing plugins, and I'm confused.
The redlinks plugin contains the lines
if url.scheme or url.netloc or url.path.startswith("/"):
# Contains a hostname or is an absolute link => external
return self.external_class
but in the test project, the root of the wiki is the document root, so a link to `/` is actually a wiki-internal link, and in fact all top-level wiki article URLs start with a `/`. Something not starting with a `/` will be an link to a sub-article, so this fails for flat wikis. Is it a recent change that article URLs are normalized to end in `/`, missing from the redlink plugin? How should it work? What's a sensible way to test for wiki-internal links?
Best wishes,
--
Gereon