Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

#6228 closed defect (duplicate)

Redirect through Proxy Server does not use $base_url

Reported by: kyle.robichaud@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: devel
Severity: normal Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When a form is submitted to trac the redirection link that is sent is not based on the url.

Trac is setup to go through a proxy server.

Base_Url = https://www.site.com/trac

redirect link should be:

https://www.site.com/trac/WikiStart

Trac returns:

https://www.site.com/WikiStart

This issue happens when a wiki entry or ticket is entered or tried to update.

Attachments (0)

Change History (7)

comment:1 by Kyle.robichaud@…, 14 years ago

I am also running Trac 0.11dev-r6079

comment:2 by Emmanuel Blot, 14 years ago

Version: devel

comment:3 by Christian Boos, 14 years ago

Keywords: needinfo added

Just to be sure, where and how did you set up this Base_Url = https://www.site.com/trac stuff?

It should be done in the trac.ini file, in the [trac] section:

[trac]
base_url = https://www.site.com/trac

comment:4 by anonymous, 14 years ago

Yes the base_url is set in the trac.ini file in the [trac] section.

comment:5 by Christian Boos, 14 years ago

Don't you override that somewhere?

I mean, do you really see this value in the "About Trac" page (when logged in as the user who has the TRAC_ADMIN permission)?

in reply to:  5 comment:6 by kyle.robichaud@…, 14 years ago

Replying to cboos:

Don't you override that somewhere?

I mean, do you really see this value in the "About Trac" page (when logged in as the user who has the TRAC_ADMIN permission)?

Yes I do see it in the "About Trac" page.

comment:7 by osimons, 14 years ago

Resolution: duplicate
Status: newclosed

This should work following #5064 with new option use_base_url_for_redirect. Please update your Trac and enable this setting - it should work as expected.

As both tickets essentially deal with (re)writing urls for redirect, I'm closing this one as a duplicate.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.