You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2020/09/29 04:23:38 UTC

[groovy-website] 01/02: better for cross-platform

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-website.git

commit 8aad59f3c3defa2e99595ee538db7b62962c1fa8
Author: Paul King <pa...@asert.com.au>
AuthorDate: Tue Sep 29 14:21:07 2020 +1000

    better for cross-platform
---
 generator/src/main/groovy/generator/PageTemplate.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generator/src/main/groovy/generator/PageTemplate.groovy b/generator/src/main/groovy/generator/PageTemplate.groovy
index 8909e23..a464ed2 100644
--- a/generator/src/main/groovy/generator/PageTemplate.groovy
+++ b/generator/src/main/groovy/generator/PageTemplate.groovy
@@ -39,7 +39,7 @@ abstract class PageTemplate extends BaseTemplate {
     String relative(String path) {
         String base = (String) model.get(BASEDIR)
         if (base && !path.startsWith('http') && !path.startsWith(File.separator)) {
-            String up = "..${File.separator}"
+            String up = "../"
             "${up*(1+base.count(File.separator))}$path"
         } else {
             path