Opened 8 years ago

Closed 8 years ago

#1109 closed defect (duplicate)

As of trac 0.11, plugins should use req.href, not env.href

Reported by: anonymous Owned by: athomas
Priority: normal Component: TagsPlugin
Severity: normal Keywords:
Cc: garyo@… Trac Release: 0.11


Per email from Christian Boos to trac-users on 1/17/07:

... a plugin is using the old API for generating the URL (*).

(*) For generating URLs, one should do req.abs_href (absolute URLs) or req.href, instead of env.abs_href or env.href, as the latter will use the base_url setting. By using req methods, the protocol/hostname/base which was used by the client to access Trac will be correctly reused.

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by anonymous

  • Cc garyo@… added

comment:2 Changed 8 years ago by athomas

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

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from athomas. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.