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

Check relative link handling in webviews #11

Open
newsch opened this issue Jun 30, 2023 · 1 comment
Open

Check relative link handling in webviews #11

newsch opened this issue Jun 30, 2023 · 1 comment

Comments

@newsch
Copy link
Collaborator

newsch commented Jun 30, 2023

In the dumps, links within the same language's wiki are written as relative
links (./Article_Title), while cross-wiki links (e.g. [[:fr:Pomme]]) are
already expanded to absolute links (https://fr.wikipedia.org/wiki/Pomme).
See https://en.wikipedia.org/wiki/Help:Interwiki_linking for more examples of wikitext linking.

The dump html includes a base element set to //lang.wikipedia.org/wiki/, but when opened as a file in firefox it assumes the scheme is file: so they don't work.

We should see if the android/ios webviews have a similar problem, and if so updating the html processing to set the scheme in the base element should handle it.

Discussed more in #10.

newsch added a commit that referenced this issue Jun 30, 2023
See #11 for next steps

Signed-off-by: Evan Lloyd New-Schmidt <evan@new-schmidt.com>
@biodranik
Copy link
Member

Looks like current OM wiki articles do not have any links. It makes sense for compact article sizes. We can come back to this issue later if we need to enrich the wiki articles' functionality.

newsch added a commit that referenced this issue Jul 10, 2023
See #11 for next steps

Signed-off-by: Evan Lloyd New-Schmidt <evan@new-schmidt.com>
newsch added a commit that referenced this issue Jul 10, 2023
See #11 for next steps

Signed-off-by: Evan Lloyd New-Schmidt <evan@new-schmidt.com>
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

2 participants