Bugs: Browse | Submit New | Admin

[#28905] styles gone after upgrading to 1.24

Date:
2011-02-03 11:16
Priority:
3
Submitted By:
Rob Westgeest (rwestgeest)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Fixed in Release:
 
Summary:
styles gone after upgrading to 1.24

Detailed description
Hi 

Have upgraded my wiki to 1.24.0 and moved to ruby 1.8.7 (which moved from user/local to /opt/ree - which seems irrelevant
to me but just in case)

Steps: 
1. change CgiConfig by changing the version 1.22.x to 1.24.0 
2. ran sudo Wiki2Go_update_site.rb 

Now in any of the scripts my styles are gone. 
in header i see:

<link type="text/css" href="/html/style.css" rel="stylesheet">

changing '/html/style.css' to  '/style.css' makes the style reappear again.

so appearently "current.format.resource_url('style.css')" is not getting the correct resource. 

Am i close ? 

Add A Comment: Notepad

Please login


Followup

Message
Date: 2011-02-03 21:38
Sender: Rob Westgeest

Made the symlink. Seems like update_site removed it. 

Anyway - works like a charm now.
Date: 2011-02-03 18:03
Sender: Pascal Van Cauwenberghe

/html/style.css is the correct location and has been for a while
(have to look up from which version). So, resource_url()
is correct

Some options:
1. Move your stylesheet in /html
2. Add a symlink in /html if the stylesheet is referenced 
3. Don't use the resource_url() and reference the URI of the
stylesheet manually in your templates

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item