forked from panicsteve/w2wiki
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I'm using Nginx to host W2 wiki and I've modified the configuration as described for spawning a CGI manager.
// VIEW
//
// Needed only if your web server spawns PHP as a CGI instead of an internal module.
// For example: define('VIEW', '?action=view&page=');
define('VIEW', '?action=view&page=');While this works for clicking on links to pages, I've noticed that the link itself is incorrect, and it's inserting a leading '/'. For example, if I have a page "Test" then the URL for the page is /index.php?action=view&page=/Test. I would expect instead action=view&page=Test, without the leading slash.
This leads to some other issues: when editing a page, the title gets a leading '/'. It also seems like W2 wiki makes assumptions about how the web server is setup in other places, without a documented configuration option. When trying to edit a page, upon saving it will redirect to /index.php/Test (in the example above).
Metadata
Metadata
Assignees
Labels
No labels