Opened 14 years ago

Closed 14 years ago

# The /wiki/WikiStart contex must be treated.

Reported by: Owned by: anderson@… Rich Harkins low TracFormsPlugin minor tracforms-0.2 0.11

### Description

HI again,

I was taking a look on the database and if you put an form on the main wiki page (that, depending on the link the context and be /wiki or /wiki/WikiStart) and the plugin create two records for the same form. This kind of context must be treated. Something like this to prevent two contexts "id´s" and two forms for the start page:

if (context = "/wiki") then context = "/wiki/WikiStart";

Anderson

### comment:1 Changed 14 years ago by Rich Harkins

Keywords: tracforms-0.2 added high → low critical → minor new → assigned

Hmmmm... I have to wonder if there any cases where Trac can be configured to send the user to something other than WikiStart. If so, then such an alteration may have hidden issues.

One thing I'm curious about is how prevalent a case it is to link to both /wiki and /wiki/WikiStart ultimately. Considering the following work around as well for the page:

{{{
#!TracForm
#! page /wiki/WikiStart

...

}}}



The page command instructs TracForm to use the page indicated instead of the URL (see TracFormsPlugin/Syntax for details and other tricks). Because of the complexities that could be opened up if WikiStart is not guaranteed to be the target and because there is a work around, I'm going to have to lower the priority/severity for now.

That said, I think it a necessary improvement at some point (probably within the currently released 0.2 series). I just want to make sure the details get nailed down first.

Thanks!

### comment:2 Changed 14 years ago by anonymous

I did some digging into the Trac source code and (at least for now) it appears that the /wiki will always forward to /wiki/WikiStart and isn't configurable in any other way. So until someone files a bug that would contradict this, I'm going to run with your suggestion and make the two act the same.

### comment:3 Changed 14 years ago by anonymous

Resolution: → fixed assigned → closed

### Modify Ticket

Change Properties
Action
as closed The owner will remain Rich Harkins.
The resolution will be deleted. Next status will be 'reopened'.