• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Not sure this is just on my install - I was going to write it on TWiki:Plugins.PublishContribDev or in Support but I know Crawford prefers questions here than in support...

http://northrockcapital.wikihosting.com/twiki/bin/view/Northrock/PublishWeb publishes to:

http://northrockcapital.wikihosting.com/site/Northrock/WebHome.html

And while this page loads beautifully in FF, IE interprets the tag:

<base href="WebHome.html"></base>

as meaning the rest of the content should come from a site called http://welcome.html/whatever

Clearly this is not going to work.

I'm using SVN.SVN9998

Configure says:

$TWiki::cfg{PublishContrib}{Dir} = '/home/northrock/public_html/site';
$TWiki::cfg{PublishContrib}{URL} = 'http://northrockcapital.wikihosting.com/site';

Have I misconfigured?

Thanks. M.


> Where are you seeing the base tag?

In the source of http://northrockcapital.wikihosting.com/site/Northrock/WebHome.html

>What skin are you using?

PatternSkin, with stylesheets as above.

> Why is the base being set to a TWiki page name like that?

Good question. I have no idea.

>Can you attach an example output?

If you open http://northrockcapital.wikihosting.com/site/Northrock/WebHome.html with IE you'll see what I mean. All the images and links are dead as IE interprets them to belonging to a site called welcome.html

>CC

Thanks.

MC


OK, I understand what is happening. BASE tags are supposed to be stripped by the publisher. The code that strips the base tag assumes the <base /> syntax, which is admittedly a bit cavalier, and doesn't work with the latest pattern skin, which has switched to <base...></base>. The fix for Item2128 rewrites URLs so that web references point to webhome. Before this fix, the base tag would have expanded to the empty string, which is why the problem wasn't apparent before.

Fixed and uploaded.

CC

Thanks again. Works great now.

MC

ItemTemplate
Summary PublishContrib publishes relative base href
ReportedBy TWiki:Main.MartinCleaver
Codebase

SVN Range 9998
AppliesTo Extension
Component PublishContrib
Priority Urgent
CurrentState Closed
WaitingFor

Checkins 10005 10006
TargetRelease n/a
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r10 - 2006-05-02 - MartinCleaver
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback