Revision: 1773
http://gatewiki.svn.sourceforge.net/gatewiki/?rev=1773&view=revAuthor: ian_roberts
Date: 2009-10-28 18:17:49 +0000 (Wed, 28 Oct 2009)
Log Message:
-----------
Avoid doubling the slash if the grails.app.context path ends with a slash.
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-28 18:01:52 UTC (rev 1772)
+++ trunk/cow/grails-app/controllers/SearchController.groovy 2009-10-28 18:17:49 UTC (rev 1773)
@@ -247,6 +247,10 @@
// e.g. /help or /main
def cutPoint = wikipath.length() + 1
def wikiAreaURI = conf.grails.app.context
+ // strip trailing slash from the context path
+ if(wikiAreaURI.endsWith('/')) {
+ wikiAreaURI = wikiAreaURI.substring(0, wikiAreaURI.length() - 1)
+ }
if(params.id.equals("1")) {
wikiAreaURI += "/help"
} else if(!params.id.equals("2")) {
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