Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jun 2024 12:55:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 279896] Download PDF not working in handbook [404]
Message-ID:  <bug-279896-9-3JpDUd2OLG@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-279896-9@https.bugs.freebsd.org/bugzilla/>
References:  <bug-279896-9@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279896

--- Comment #5 from freebsd.illusive064@passinbox.com ---
I did some more invenstigation  :

  <div class=3D"resources">
        <h3>{{ i18n "resources" }}</h3>
        <ul class=3D"contents">
          {{ $pathSections :=3D split .Page.File "/" }}
          {{ $path :=3D printf "%s/%s/%s_%s.pdf" (index $pathSections 0) (i=
ndex
$pathSections 1) (index $pathSections 1) $.Site.Home.Language }}
          {{ $pdfUrl :=3D printf "%s%s/%s" $.Site.Params.downloadBaseUrl
$.Site.Home.Language $path }}
          <li><i class=3D"fa fa-file-pdf-o" aria-hidden=3D"true" title=3D"{=
{ i18n
"download-pdf" }}"></i><a href=3D"{{ $pdfUrl }}">{{ i18n "download-pdf"
}}</a></li>
          {{ $editUrl :=3D printf "%s%s/%s" $.Site.Params.editBaseUrl
$.Site.Home.Language .Page.File }}
          <li><i class=3D"fa fa-pencil-square-o" aria-hidden=3D"true" title=
=3D"{{
i18n "edit-page" }}"></i><a href=3D"{{ $editUrl }}" target=3D"_blank">{{ i1=
8n
"edit-page" }}</a></li>
        </ul>
      </div>


Here specifically:
          {{ $pathSections :=3D split .Page.File "/" }}
          {{ $path :=3D printf "%s/%s/%s_%s.pdf" (index $pathSections 0) (i=
ndex
$pathSections 1) (index $pathSections 1) $.Site.Home.Language }}

pathSections 1 and 0 are nil, why? I have no idea how this site is made,
hopefully someone else can answer that

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279896-9-3JpDUd2OLG>