#592: Incorrect resolution of absolute hrefs
---------------------------+--------------------------------------
  Reporter:  olemis        |      Owner:  rjollos
      Type:  defect        |     Status:  review
  Priority:  minor         |  Milestone:  Release 7
 Component:  multiproduct  |    Version:
Resolution:                |   Keywords:  global product TracLinks
---------------------------+--------------------------------------
Description changed by olemis:

Old description:

> Recently I've noticed that `global:` TracLinks do not point at the
> resource URL in the right product context when using bootstrap handlers
> to deploy custom URL mappings. E.g. in this page http://dataviz.blood-
> hound.net/wiki/UserDoc/TracLinks `[global:wiki:TracLinks]` is expanded to
> ''http://dataviz.blood-hound.net/wiki/TracLinks'' instead of global URL
> ''http://blood-hound.net/wiki/TracLinks''.
>
> **Update** : After some more testing with sub-domain deployments the
> situation is as follows:
>
>   1. If `base_url` option in `[trac]` section of the global env
>      [wiki:TracIni configuration file] is not set then `product:` links
>      will point at the correct URL but `global:` links will not work
>      as expected in product context.
>   2. OTOH once `base_url` option in `[trac]` section of the global env
>      [wiki:TracIni configuration file] is set then `product_base_url` in
>      `[multiproduct]` section is ignored and both `product:` and
> `global:` links
>      will not work as expected in any context.
>
> PS: This is working fine for default URL mappings in my local working
> copy.

New description:

 Recently I've noticed that `global:` TracLinks do not point at the
 resource URL in the right product context when using bootstrap handlers to
 deploy custom URL mappings. E.g. in this page http://dataviz.blood-
 hound.net/wiki/UserDoc/TracLinks `[global:wiki:TracLinks]` is expanded to
 ''http://dataviz.blood-hound.net/wiki/TracLinks'' instead of global URL
 ''http://blood-hound.net/wiki/TracLinks''.

 **Update** : After some more testing with sub-domain deployments the
 situation is as follows:

   1. If `base_url` option in `[trac]` section of the global env
      [wiki:TracIni configuration file] is not set then `product:` links
      will point at the correct URL but `global:` links will not work
      as expected in product context.
   2. OTOH once `base_url` option in `[trac]` section of the global env
      [wiki:TracIni configuration file] is set then `product_base_url` in
      `[multiproduct]` section is ignored and both `product:` and `global:`
 links
      will not work as expected in any context.

 PS: ~~This is working fine for default URL mappings in my local working
 copy.~~

--

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/592#comment:10>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Reply via email to