[gatewiki-commits] SF.net SVN: gatewiki:[1755] trunk/cow/grails-app/controllers/ SearchController.groovy

View: New views
1 Messages — Rating Filter:   Alert me  

[gatewiki-commits] SF.net SVN: gatewiki:[1755] trunk/cow/grails-app/controllers/ SearchController.groovy

by markagreenwood :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Revision: 1755
          http://gatewiki.svn.sourceforge.net/gatewiki/?rev=1755&view=rev
Author:   markagreenwood
Date:     2009-10-27 11:41:22 +0000 (Tue, 27 Oct 2009)

Log Message:
-----------
fixed so that solr urls now include the context path

Modified Paths:
--------------
    trunk/cow/grails-app/controllers/SearchController.groovy

Modified: trunk/cow/grails-app/controllers/SearchController.groovy
===================================================================
--- trunk/cow/grails-app/controllers/SearchController.groovy 2009-10-27 11:40:28 UTC (rev 1754)
+++ trunk/cow/grails-app/controllers/SearchController.groovy 2009-10-27 11:41:22 UTC (rev 1755)
@@ -246,11 +246,11 @@
     // obtain cutPoint for parent folder
     // e.g. /help or /main
     def cutPoint = wikipath.length() + 1
-    def wikiAreaURI = ""
+    def wikiAreaURI = conf.grails.app.context
     if(params.id.equals("1")) {
-      wikiAreaURI = "/help"
+      wikiAreaURI += "/help"
     } else if(!params.id.equals("2")) {
-      wikiAreaURI = "/page/show/${wiki.id}"
+      wikiAreaURI += "/page/show/${wiki.id}"
     }
 
     // replace urls with cow relative urls and generate appropriate html


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
gatewiki-commits mailing list
gatewiki-commits@...
https://lists.sourceforge.net/lists/listinfo/gatewiki-commits