Description

Describe the bug...

Steps to reproduce

  1. Add a #redirect to a page
  2. Go to it. It will issue a "302 Found" instead of a "301 Moved Permanently". This is not desirable.

Example

Component selection

Details

I see this in the code:

Just change "302 Found" to "301 Moved Permanently" to fix.

MoinMoin Version

1.8.5

OS and Version

all

Python Version

all

Server Setup

Server Details

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

Workaround

Discussion

The problem here is that when pages move, and you use #redirect, if it issues a 301, search engines will know that links that point to the old page now effectively point to the new, and browsers may even update their bookmarks. Not so with a 302.

Plan

There was some misbehaviour discovered later, so this "fix" had to get reverted, see there:

MoinMoinBugs/redirectsShouldBeTemporaryToPreventCaching


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/RedirectShouldUse301 (last edited 2014-01-04 17:28:31 by HSI-KBW-46-237-210-69)