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

Add api method to get wiki url from page title #67

Open
tholzheim opened this issue Apr 15, 2021 · 2 comments
Open

Add api method to get wiki url from page title #67

tholzheim opened this issue Apr 15, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@tholzheim
Copy link
Collaborator

tholzheim commented Apr 15, 2021

Please note that simply using the scriptpath might not work. The current configuration of OpenResearch is an example for this. It might be that we have to add another field to wikiuser that optionally holds the correct formatting string for how an enduser "sees" the wiki. This might also be useful for WikiCMS. You'll never now what kind of url rewrites are done on some wikis - there is no standard for that. The scripts/index.php?title=pagetitle version is pretty generic but leads to ugly urls.

@WolfgangFahl WolfgangFahl added the enhancement New feature or request label Apr 17, 2021
@WolfgangFahl
Copy link
Owner

see https://github.com/mediawiki-utilities/python-mediawiki-utilities/blob/master/mw/lib/title/functions.py for one of the functionalities needed (convert spaces to underscore) - there are lot more things to do like url_encoding html chars and so on ..

@WolfgangFahl WolfgangFahl added this to the 0.12.0 milestone Jul 27, 2024
@WolfgangFahl WolfgangFahl modified the milestones: 0.12.0, 0.12 Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants