Modify

Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#5995 closed enhancement (fixed)

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

Reported by: Matt Caron 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 Matt Caron 7 years ago.
Patch to allow homepage redirection

Download all attachments as: .zip

Change History (7)

Changed 7 years ago by Matt Caron

Attachment: homepage_redirect.patch added

Patch to allow homepage redirection

comment:1 Changed 7 years ago by Matt Caron

You need to do:

[mypage]
homepage_redirect = true

to make it work.

comment:2 Changed 7 years ago by Ryan J Ollos

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

Looks useful.

comment:3 Changed 7 years ago by Steffen Hoffmann

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

comment:4 Changed 6 years ago by dgc

Resolution: fixed
Status: newclosed

comment:5 Changed 6 years ago by Ryan J Ollos

comment:6 in reply to:  5 Changed 6 years ago by Steffen Hoffmann

Keywords: redirect added

Replying to rjollos:

[9516]

Thanks, wouldn't have spotted that one otherwise.

Modify Ticket

Action
as closed The owner will remain dgc.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.