Actually, this applies to ANY relative URL, but pictures seem to be the most common that have their URLs inserted as relative vs. absolute.
The issue is that the base href and the relative URL were tromping on each other a bit. The default installtion of Opt In 3.0 sets the base href to a likely value based on portal information in DNN. When you upload a picture and include it in a newsletter, the html editor sets the relative URL based on info from DNN. Here was my situation:
Default base href in Opt In 3.0: http://mydom.com/ozfl
image URL built by editor: "src="/ozfl/portals/1/..."
Final URL constructed by browser: http://mydom.com/ozfl/ozfl/portals/1/...
The "problem" is the way the portal is set up. In IIS, it is a virtual directory, in DNN it is a parent portal. In DNS it is a subdomain that maps to the virtual directory. Therefore, the base href mapping and the DNN mapping were both adding the "ozfl" piece.
The solution is to change the base href in the Advanced Email module, Settings, Advanced Newsletter Settings to:
"href=http://mydom.com"
This allows the html editor to add the virtual directory name so that the absolute URL built by the browser matches the DNS mapping.
Why the convoluted setup for the portal? This is a test site with linited ips and domain names available. The "real" site is a 2nd level domain name. When we transfer Opt In 3.0 to that site, we'll have to check the base href again to make sure the setting is correct for that configuration.
|