Hi Patrick,

You can use the rewrite engine[0], provided by server softwares. Like Apache server has mod_rewrite module[1] which allows to use .htaccess file in web root directory.

If your wiki already has a short url feature then it is already using a rewrite engine. You just need to add one more rewrite rule for editing the URL pattern.


Jay Prakash

[0] https://en.wikipedia.org/wiki/Rewrite_engine
[1] https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html

On Wed, Feb 16, 2022 at 4:54 PM Patrick Schleizer via MediaWiki-l <mediawiki-l@lists.wikimedia.org> wrote:
I have a question related to MediaWiki Short URLs. [1]

Short URLs are generally working very well. However, after wiki editors
edit an article, they end up on the Long URL. For example:

https://domain-name/w/index.php?title=Article&stable=0

Is it possible that after editing a wiki page editors end up the Short URL?

Kind regards,
Patrick

[1] https://www.mediawiki.org/wiki/Manual:Short_URL
_______________________________________________
MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/