Description

I have a moinmoin wiki set up. For some reason, when I first go to the wiki, I have to click twice for the first link I go to. After that, one click follows the link.

here is what I have in farmconfig.py:

wikis = [
    # Standalone server needs the port e.g. localhost:8000
    # Twisted server can now use the port, too.

    # wikiname,     url regular expression (no protocol)
    # ---------------------------------------------------------------
    #("profitwiki",  r".*"),   # this is ok for a single wiki   
    ("profitwiki",  r"^profitwiki.xxx.yyy.com/profitwiki/.*$"), 
    ("infrawiki",  r"^profitwiki.xxx.yyy.com/infrawiki/.*$"),    
    ("profitwiki",  r"^profitwiki/profitwiki/.*$"),    
    ("infrawiki",  r"^profitwiki/infrawiki/.*$"),    
    # for multiple wikis, do something like this:
    #("moinmoin",    r"^moinmo.in/.*$"),
    #("moinmaster",  r"^master.moinmo.in/.*$"),
]

I have two wikis in the farm(profitwiki and infrawiki). The 2nd pair of lines allow me to not have to enter xxx.yyy.com for the URL since that is in my search path. I tried commenting out the 2nd pair of lines to see if that was the problem. It didn't change anything except that I had to enter the full URL to get to the wiki.

/etc/apache2/sites-available/default has the following to make profitwiki the default for the computer:

<Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
        # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right
place
                #RedirectMatch ^/$ /apache2-default/
                RedirectMatch ^/$ /profitwiki/
    </Directory>

With this setup, all I have to enter for the URL in my browser to go to profitwiki the default wiki is profitwiki.

Steps to reproduce

  1. Go to the wiki
  2. Click on a link

Example

I first go to the wiki and the browser URL looks like this

I click on a link called DemandManagement and nothing happens except that the browser URL changes to

http://profitwiki.xxx.yyy.com/profitwiki//DemandManagement

but the link is not opened. I then click on any link and the link will be followed but the browser URL looks like this

http://profitwiki.xxx.yyy.com/profitwiki//DemandManagement/DemandManagement

subsequent clicks on any links follow the link on one click but the URL always starts with

http://profitwiki.xxx.yyy.com/profitwiki//DemandManagement/

before the link name. If my first click on the wiki is something besides DemandManagement, the same thing happens and that link name is what precedes everything from then on.

Component selection

Details

MoinMoin Version

1.7.1-1

OS and Version

Debian GNU/Linux Lenny(testing)

Python Version

2.4.5-5

Server Setup

apache2 mod_python

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Discussion

Any idea what is wrong? Here is my /etc/apache2/conf.d/

Alias /moin_static171 "/usr/share/moin/htdocs/"

 <Location /profitwiki>
 SetHandler python-program
 PythonPath "['/var/www/profitwiki','/etc/moin/']+sys.path"
 PythonHandler MoinMoin.request.request_modpython::Request.run 
 PythonDebug On
 </Location>

 <Location /infrawiki>
 SetHandler python-program
 PythonPath "['/var/www/infrawiki','/etc/moin/']+sys.path"
 PythonHandler MoinMoin.request.request_modpython::Request.run
 PythonDebug On
 </Location>

No idea, but you maybe want to switch to mod_wsgi - we have a nice help page about it.

I switched to mod_wsgi and one click now takes me to the page I click. The two click problem went away.

Thanks

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/ClickTwiceFirstLink (last edited 2008-08-15 15:43:05 by bi-02pt1)