Ticket #5995 (closed enhancement: fixed)

Opened 4 years ago

Last modified 2 years ago

[Patch] The base URL should redirect to My Page.

Reported by: mattc Assigned to: dgc
Priority: normal Component: TracMyPagePlugin
Severity: normal Keywords: redirect
Cc: Trac Release: 0.11

Description

When hitting the main page ("/" as far as the req object is concerned), the plugin should:

  1. If the user is logged in, redirect to My Page just as if you had gone to /me.
  2. If the user is not logged in, go on through to the main page.

Note that the main page is usually the Wiki, so is just serving the contents of /wiki, so you can still get there because it wouldn't match /wiki.

(I already have this implemented, I'm just testing it. Patch will be forthcoming and will be attached to this ticket).

Attachments

homepage_redirect.patch (1.2 kB) - added by mattc on 10/20/09 21:46:08.
Patch to allow homepage redirection

Change History

10/20/09 21:46:08 changed by mattc

  • attachment homepage_redirect.patch added.

Patch to allow homepage redirection

10/20/09 21:47:00 changed by mattc

You need to do:

[mypage]
homepage_redirect = true

to make it work.

11/13/09 02:10:49 changed by rjollos

  • summary changed from The base URL should redirect to My Page. to [Patch] The base URL should redirect to My Page..

Looks useful.

03/13/10 23:04:10 changed by hasienda

exactly what I was looking for, will definitely test this one, thanks

11/25/10 00:53:08 changed by dgc

  • status changed from new to closed.
  • resolution set to fixed.

(follow-up: ↓ 6 ) 12/04/10 16:16:18 changed by rjollos

(in reply to: ↑ 5 ) 12/04/10 17:31:26 changed by hasienda

  • keywords set to redirect.

Replying to rjollos:

[9516]

Thanks, wouldn't have spotted that one otherwise.


Add/Change #5995 ([Patch] The base URL should redirect to My Page.)




Change Properties
Action