Edgewall Software

Opened 14 years ago

Last modified 4 years ago

#9487 closed enhancement

Control the default wiki page through trac.ini — at Initial Version

Reported by: a-h Owned by:
Priority: normal Milestone: 1.3.2
Component: wiki system Version: 0.12
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Hello,

Here's a way to change the default wiki page:

--- web_ui.orig.py      2010-07-06 11:31:30.000000000 -0400
+++ web_ui.py   2010-07-06 11:31:02.000000000 -0400
@@ -107,7 +107,9 @@

     def process_request(self, req):
         action = req.args.get('action', 'view')
-        pagename = req.args.get('page', 'WikiStart')
+        pagename = req.args.get('page',
+                                self.env.config['wiki'].get('default_page')
+                                    or 'WikiStart')
         version = req.args.get('version')
         old_version = req.args.get('old_version')

Change History (0)

Note: See TracTickets for help on using tickets.