Edgewall Software

Ticket #6228 (closed defect: duplicate)

Opened 13 months ago

Last modified 10 months ago

Redirect through Proxy Server does not use $base_url

Reported by: kyle.robichaud@… Owned by: jonas
Priority: normal Milestone:
Component: general Version: devel
Severity: normal Keywords: needinfo
Cc:

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

Change History

  Changed 13 months ago by Kyle.robichaud@…

I am also running Trac 0.11dev-r6079

  Changed 13 months ago by eblot

  • version set to devel

  Changed 13 months ago by cboos

  • 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

  Changed 13 months ago by anonymous

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

follow-up: ↓ 6   Changed 13 months ago by 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)?

in reply to: ↑ 5   Changed 13 months ago by kyle.robichaud@…

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.

  Changed 10 months ago by osimons

  • status changed from new to closed
  • resolution set to duplicate

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.

Add/Change #6228 (Redirect through Proxy Server does not use $base_url)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.