Modify

Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#5995 closed enhancement (fixed)

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

Reported by: mattc Owned by: 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 (1)

homepage_redirect.patch (1.2 KB) - added by mattc 5 years ago.
Patch to allow homepage redirection

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by mattc

Patch to allow homepage redirection

comment:1 Changed 5 years ago by mattc

You need to do:

[mypage]
homepage_redirect = true

to make it work.

comment:2 Changed 5 years ago 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.

comment:3 Changed 4 years ago by hasienda

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

comment:4 Changed 4 years ago by dgc

  • Resolution set to fixed
  • Status changed from new to closed

comment:5 follow-up: Changed 4 years ago by rjollos

comment:6 in reply to: ↑ 5 Changed 4 years ago by hasienda

  • Keywords redirect added

Replying to rjollos:

[9516]

Thanks, wouldn't have spotted that one otherwise.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.