Skip to content
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

Redirected pages not showing in topic list #251

Open
cerebrate opened this issue Aug 28, 2023 · 6 comments
Open

Redirected pages not showing in topic list #251

cerebrate opened this issue Aug 28, 2023 · 6 comments

Comments

@cerebrate
Copy link

I'm using the tag plugin along with the page redirect plugin ( https://www.dokuwiki.org/plugin:pageredirect ), but while pages containing a redirect show up in the full index, they don't show up in the listing produced by {{topic}}, even when tagged:

====== alternate name ======

#REDIRECT real-name

{{tag>this-pages-category}}

I'm not sure what the interaction is, here - I'm raising the issue here because I would have expected the tag plugin to be indifferent to other markup on the tagged page - but whether it qualifies as a bug or a feature request, it would be useful if there were a way to make them be included.

@michitux
Copy link
Member

I suspect that this is because these pages aren't properly indexed due to the redirect. Do they appear when you search for the text in them using the regular search feature?

You could try the searchindex plugin to re-index all pages including those with the redirect.

@Klap-in
Copy link
Member

Klap-in commented Aug 28, 2023

That plugin has itself also an workaround for this, if I interpret it right.
https://github.com/glensc/dokuwiki-plugin-pageredirect/blob/ba1cc05f6a2c3c2fabdd0119f728ff20453db7c0/action.php#L118

@Klap-in
Copy link
Member

Klap-in commented Aug 28, 2023

If that indexing should be solved, then I think the pageredirect plugin should do that? Therefore, no changes needed in the tag plugin?

@cerebrate
Copy link
Author

cerebrate commented Aug 28, 2023

Unfortunately, the pages do seem to be indexed correctly: the redirect pages are found by search, and show up in the index created by appending doku.php?do=index to the DokuWiki URL, or on index pages using the nsindex or nspages plugins. It's only the {{topic}} lists that I've found so far not to show them.

@michitux
Copy link
Member

do=index doesn't use the index, but search uses it, that's why I asked about the search. Could you try searching explicitly for the tag syntax/the words in it (the search is based on words), just to be sure that a version of the page with the tag syntax has been indexed?

From a short look at the plugin, there should be nothing special about pages using it. I'm suspecting that indexing might not work correctly because if the page redirects to another page, indexing of the page isn't triggered as it would be by viewing the page. You could also try viewing the affected page without redirect to trigger its indexing.

I haven't tried reproducing the issue which would be the next step to confirm this issue.

@cerebrate
Copy link
Author

Just tried that: if I search for the tag specifically (whole syntax or just the tag words), the page does show up in the results, yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants