<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Steven,</p>
<p><br>
</p>
<p>Yeah, so the fix for this is you're probably going to have to precompile you assets again and pass in a relative url root. </p>
<p><br>
</p>
<p>Something like this would work I think:</p>
<p><a title="Cmd+Click or tap to follow the link" id="LPlnk137198" href="https://gist.github.com/cfitz/8d5d65c30127ff69ff22">https://gist.github.com/cfitz/8d5d65c30127ff69ff22</a></p>
<p><br>
</p>
<p>You can set a RAILS_RELATIVE_URL_ROOT environment variable when you run ./scripts/build_release ( or the build/run dist or whatever ) </p>
<p><br>
</p>
<p>There's a similar file in the public directory. </p>
<br>
I think this would work...<br>
<br>
b,chris. <br>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">Chris Fitzpatrick | <font size="2">Developer, ArchivesSpace</font><br>
Skype: chrisfitzpat | Phone: 918.236.6048<br>
http://archivesspace.org/<br>
</div>
</font></div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Steven Majewski
<sdm7g@virginia.edu><br>
<b>Sent:</b> Friday, July 24, 2015 5:25 AM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Serving ArchivesSpace with prefix and proxy</font>
<div> </div>
</div>
<div><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jul 23, 2015, at 9:11 PM, Steven Majewski <<a href="mailto:sdm7g@virginia.edu" class="">sdm7g@virginia.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class=""><br class="" style="font-family:Menlo-Regular; font-size:14px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Menlo-Regular; font-size:14px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">There
is still the issue of LCNAF plugin paths being broken. I haven't looked at that issue yet.<span class="Apple-converted-space"> </span></span><br class="" style="font-family:Menlo-Regular; font-size:14px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<br class="" style="font-family:Menlo-Regular; font-size:14px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<br class="" style="font-family:Menlo-Regular; font-size:14px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
</div>
</blockquote>
</div>
<div class=""><br class="">
</div>
Looks like LCNAF plugin frontend/routes.rb just needs to be wrapped with a scope like the public and frontend routes: <br class="">
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="margin:0px; color:rgb(105,40,40); background-color:rgb(255,206,182)">
<b class="">diff --git a/plugins/lcnaf/frontend/routes.rb b/plugins/lcnaf/frontend/routes.rb</b></div>
<div class="" style="margin:0px; color:rgb(105,40,40); background-color:rgb(255,206,182)">
<b class="">index 9a41305..7f0acd9 100644</b></div>
<div class="" style="margin:0px; color:rgb(105,40,40); background-color:rgb(255,206,182)">
<b class="">--- a/plugins/lcnaf/frontend/routes.rb</b></div>
<div class="" style="margin:0px; color:rgb(105,40,40); background-color:rgb(255,206,182)">
<b class="">+++ b/plugins/lcnaf/frontend/routes.rb</b></div>
<div class="" style="margin:0px; color:rgb(0,161,174); background-color:rgb(255,206,182)">
@@ -1,7 +1,9 @@</div>
<div class="" style="margin:0px; background-color:rgb(255,206,182)"> ArchivesSpace::Application.routes.draw do</div>
<div class="" style="margin:0px; color:rgb(0,164,0); background-color:rgb(255,206,182)">
+ scope AppConfig[:frontend_prefix] do</div>
<p class="" style="margin:0px; background-color:rgb(255,206,182); min-height:18px">
<br class="webkit-block-placeholder">
</p>
<div class="" style="margin:0px; color:rgb(176,36,18); background-color:rgb(255,206,182)">
- match('/plugins/lcnaf' => 'lcnaf#index', :via => [:get])</div>
<div class="" style="margin:0px; color:rgb(176,36,18); background-color:rgb(255,206,182)">
- match('/plugins/lcnaf/search' => 'lcnaf#search', :via => [:get])</div>
<div class="" style="margin:0px; color:rgb(176,36,18); background-color:rgb(255,206,182)">
- match('/plugins/lcnaf/import' => 'lcnaf#import', :via => [:post])</div>
<div class="" style="margin:0px; color:rgb(0,164,0); background-color:rgb(255,206,182)">
+ match('/plugins/lcnaf' => 'lcnaf#index', :via => [:get])</div>
<div class="" style="margin:0px; color:rgb(0,164,0); background-color:rgb(255,206,182)">
+ match('/plugins/lcnaf/search' => 'lcnaf#search', :via => [:get])</div>
<div class="" style="margin:0px; color:rgb(0,164,0); background-color:rgb(255,206,182)">
+ match('/plugins/lcnaf/import' => 'lcnaf#import', :via => [:post])</div>
<p class="" style="margin:0px; background-color:rgb(255,206,182); min-height:18px">
<br class="webkit-block-placeholder">
</p>
<div class="" style="margin:0px; color:rgb(0,164,0); background-color:rgb(255,206,182)">
+ end</div>
<div class="" style="margin:0px; background-color:rgb(255,206,182)"> end</div>
</div>
</div>
</div>
</div>
</body>
</html>