{"action":"opened","issue":{"url":"https://api.github.com/repos/kulttuuri/DiscordNotifications/issues/17","repository_url":"https://api.github.com/repos/kulttuuri/DiscordNotifications","labels_url":"https://api.github.com/repos/kulttuuri/DiscordNotifications/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/kulttuuri/DiscordNotifications/issues/17/comments","events_url":"https://api.github.com/repos/kulttuuri/DiscordNotifications/issues/17/events","html_url":"https://github.com/kulttuuri/DiscordNotifications/issues/17","id":333238212,"node_id":"MDU6SXNzdWUzMzMyMzgyMTI=","number":17,"title":"Handle short (Pretty) URL formats","user":{"login":"m1ari","id":5360245,"node_id":"MDQ6VXNlcjUzNjAyNDU=","avatar_url":"https://avatars3.githubusercontent.com/u/5360245?v=4","gravatar_id":"","url":"https://api.github.com/users/m1ari","html_url":"https://github.com/m1ari","followers_url":"https://api.github.com/users/m1ari/followers","following_url":"https://api.github.com/users/m1ari/following{/other_user}","gists_url":"https://api.github.com/users/m1ari/gists{/gist_id}","starred_url":"https://api.github.com/users/m1ari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m1ari/subscriptions","organizations_url":"https://api.github.com/users/m1ari/orgs","repos_url":"https://api.github.com/users/m1ari/repos","events_url":"https://api.github.com/users/m1ari/events{/privacy}","received_events_url":"https://api.github.com/users/m1ari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-18T11:53:54Z","updated_at":"2018-06-18T11:53:54Z","closed_at":null,"author_association":"NONE","body":"Some wikis are setup using the [ShortURLS](https://www.mediawiki.org/wiki/Manual:Short_URL) format where actions (e.g. `&action=edit`) can be handled via a _pretty_ url(e.g `https://wiki.site/edit/Page_Name`). It seems like for wikis using this format this extension cannot create pretty URLs (whilst the traditional urls might work it defeats the purpose of having pretty urls).\r\n\r\nThis setup makes use of the re-write functionality in the webserver e.g.\r\n```\r\nRewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]\r\nRewriteRule ^/(edit)/(.*)$ %{DOCUMENT_ROOT}/w/index.php [L,QSA]\r\nRewriteRule ^/(history)/(.*)$ %{DOCUMENT_ROOT}/w/index.php [L,QSA]\r\n```\r\nthe [wgActionPaths](https://www.mediawiki.org/wiki/Manual:$wgActionPaths) config option within media wiki e.g.\r\n```\r\n# Setup pretty paths or view/edit/history\r\n$wgActionPaths['edit'] = \"/edit/$1\";\r\n$wgActionPaths['history'] = \"/history/$1\";\r\n$wgArticlePath = \"/wiki/$1\";\r\n```\r\n\r\nThis allows for the following urls\r\n* https://wiki.evergreencoin.org/wiki/Main_Page\r\n* https://wiki.evergreencoin.org/edit/Main_Page\r\n* https://wiki.evergreencoin.org/history/Main_Page\r\n\r\nOther actions may still use the `?action=` like: https://wiki.evergreencoin.org/w/index.php?title=Main_Page&action=watch\r\n\r\nIt might be good if the extension could allow for such a configuration, maybe by looking to see if the relevant `$wgActionPaths` config options are set (the default article path should be in `$wgActionPaths['view']`"}}
{"actor":{"display_login":"m1ari"}}