[Bug] URLs with Additional Subdirectories Result in Errors #23

Closed
opened 2024-08-23 23:43:46 +00:00 by Binzy_Boi · 0 comments

When encountering a URL that doesn't follow the expected URL schema by having additional subdirectories, Wikimore currently returns an Error in place of those pages.

This is most evident in browsing Wikibooks, where reading most books is impossible as the URLs for individual chapters is a subdirectory of the book itself.

For example, for the Guitar wikibook at the following Wikibooks and Wikimore links respectively, the table of contents displays as intended:

https://en.wikibooks.org/wiki/Guitar
https://wikimore.private.coffee/wikibooks/en/wiki/Guitar

However, when viewing individual chapters, Wikimore returns an error, as it appears it does not expect this change in URL schema. Here are the Wikibooks and Wikimore links respectively for the Harmonics chapter of the book, where Wikimore gives an error:

https://en.wikibooks.org/wiki/Guitar/Harmonics
https://wikimore.private.coffee/wikibooks/en/wiki/Guitar/Harmonics

While most prevalent in Wikibooks, this also occurs in other Wikimedia projects. On Wikipedia, the page for Selected Anniversaries displays as intended on both Wikipedia and Wikimore at the following links:

https://en.wikipedia.org/wiki/Wikipedia:Selected_anniversaries
https://wikimore.private.coffee/wiki/en/wiki/Wikipedia:Selected_anniversaries

However, clicking on any of the months at the top of the article, February for example, Wikimore gives an error similar to the case above:

https://en.wikipedia.org/wiki/Wikipedia:Selected_anniversaries/February
https://wikimore.private.coffee/wiki/en/wiki/Wikipedia:Selected_anniversaries/February

When encountering a URL that doesn't follow the expected URL schema by having additional subdirectories, Wikimore currently returns an Error in place of those pages. This is most evident in browsing Wikibooks, where reading most books is impossible as the URLs for individual chapters is a subdirectory of the book itself. For example, for the Guitar wikibook at the following Wikibooks and Wikimore links respectively, the table of contents displays as intended: https://en.wikibooks.org/wiki/Guitar https://wikimore.private.coffee/wikibooks/en/wiki/Guitar However, when viewing individual chapters, Wikimore returns an error, as it appears it does not expect this change in URL schema. Here are the Wikibooks and Wikimore links respectively for the Harmonics chapter of the book, where Wikimore gives an error: https://en.wikibooks.org/wiki/Guitar/Harmonics https://wikimore.private.coffee/wikibooks/en/wiki/Guitar/Harmonics While most prevalent in Wikibooks, this also occurs in other Wikimedia projects. On Wikipedia, the page for Selected Anniversaries displays as intended on both Wikipedia and Wikimore at the following links: https://en.wikipedia.org/wiki/Wikipedia:Selected_anniversaries https://wikimore.private.coffee/wiki/en/wiki/Wikipedia:Selected_anniversaries However, clicking on any of the months at the top of the article, February for example, Wikimore gives an error similar to the case above: https://en.wikipedia.org/wiki/Wikipedia:Selected_anniversaries/February https://wikimore.private.coffee/wiki/en/wiki/Wikipedia:Selected_anniversaries/February
Binzy_Boi changed title from [Bug] URLs with Additional Subdirectories to [Bug] URLs with Additional Subdirectories Result in Errors 2024-08-23 23:44:27 +00:00
kumi closed this issue 2024-08-25 15:09:49 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: PrivateCoffee/wikimore#23
No description provided.