--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: Calendar links in month archives broken (duplicating archives directory in link)
- From: Daniel Leidert <daniel.leidert@wgdd.de>
- Date: Sat, 06 Oct 2012 21:54:59 +0200
- Message-id: <20121006195459.3351.17678.reportbug@haktar.debian.wgdd.de>
Package: nanoblogger
Version: 3.4.2-3
Severity: normal
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
If you take a look at the monthly archive, there is a calendar (like on
the main page). But the links in this calendar are broken. The directory
"archives/" is duplicated in the link. I've attached a patch, that fixes
the issue. I haven't found a fix in upstream VCS. So no idea if this
issue still exists in 3.5 RC 1.
Regards, Daniel
- -- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (850, 'unstable'), (700, 'testing'), (560, 'stable'), (110, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages nanoblogger depends on:
ii bsdmainutils 9.0.3
Versions of packages nanoblogger recommends:
ii markdown 1.0.1-7
ii tidy 20091223cvs-1.2
Versions of packages nanoblogger suggests:
ii epiphany-browser [www-browser] 3.4.2-2
ii galeon [www-browser] 2.0.7-2.1+b1
ii iceape [www-browser] 2.7.7-1
ii iceweasel [www-browser] 10.0.7esr-2
ii kazehakase [www-browser] 0.5.8-4
ii links2 [www-browser] 2.7-1
ii lynx-cur [www-browser] 2.8.8dev.14-1
ii nanoblogger-extra 3.4.2-2
ii netrik [www-browser] 1.16.1-1.1
ii opera [www-browser] 12.02.1578
ii w3m [www-browser] 0.5.3-8
- -- no debconf information
- -- debsums errors found:
debsums: changed file /usr/bin/nb (from nanoblogger package)
debsums: changed file /usr/share/nanoblogger/lib/tools.sh (from nanoblogger package)
debsums: changed file /usr/share/nanoblogger/plugins/archive/month/month_archive.sh (from nanoblogger package)
debsums: changed file /usr/share/nanoblogger/plugins/calendar.sh (from nanoblogger package)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlBwjJMACgkQm0bx+wiPa4wlpgCaAmbIpwqpZ04/dJympVM7TBcd
Ve0An1ZV2Iaobz4rDlMb9b1oOr5ycLQ6
=HT9b
-----END PGP SIGNATURE-----
--- a/plugins/calendar.sh
+++ b/plugins/calendar.sh
@@ -69,7 +69,7 @@
else
set_entrylink "$entry" altlink
fi
- dn='<a href="'${ARCHIVES_PATH}$NB_EntryPermalink'">'$dn'</a>'
+ dn='<a href="'${BASE_URL}$ARCHIVES_DIR/$NB_EntryPermalink'">'$dn'</a>'
echo '<td><span class="calendar">'$dn'</span></td>' >> "$cal_file"
fi
done
--- End Message ---