xsawyerx / PearlBee

Blogging system in Modern Perl
6 stars 2 forks source link

Broken links #35

Open book opened 8 years ago

book commented 8 years ago

When generating the static web site with my test database, wallflower gave me the following errors:

$ wallflower --include lib --environment static --destination static/ --application bin/app.pl |grep -v ^200
The pass option is deprecated. Use password instead. at /home/book/perl5/lib/perl5/DBICx/Sugar.pm line 63.
404 /posts/user/BooK.html
404 /posts/category/uncategorized.html
404 /posts/tag/test.htmlme%20%]%3C/a%3E%3C/li%3E%0A%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%3Cli%3E%3Ca%20href=
404 /posts/tag/more.htmlme%20%]%3C/a%3E%3C/li%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%3C/ul%3E%0A%20%20%3C/div%3E%20%20%20%20%0A%3C/div%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%0A%20%20%20%20%20%20%3C/div%3E%0A%20%20%20%20%3C/div%3E%0A%20%20%3C/div%3E%0A%3C/div%3E%0A%0A%20%20%0A%20%20%20%20%20%20%20%3Cfooter%3E%0A%20%20%20%20%20%20%20%20%20%3Cdiv%20class=
404 /blog/fonts/glyphicons-halflings-regular.eot
404 /blog/fonts/glyphicons-halflings-regular.woff
404 /blog/fonts/glyphicons-halflings-regular.ttf
404 /blog/fonts/glyphicons-halflings-regular.svg
404 /posts/tag/test.html
404 /posts/tag/more.html
404 /posts/tag/more-test.html

I think this is mostly related to the templates having incorrect links for things that probably are in the dashboard. The %20 issue is probably related to some syntax error in a template.

book commented 8 years ago

This is related to #36, in the sense that the templates reference the old endpoints.

book commented 8 years ago

Step 1: 63f104b282ddb8140a73fb9c365c5ed028859356 makes the uri() methods link to the endpoints listed in #36.

book commented 8 years ago

Step 2: a40d873c30d3eab64094cf6365e7515e0921d906 fixes really broken links.

404 /posts/tag/test.htmlme%20%]%3C/a%3E%3C/li%3E%0A%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%3Cli%3E%3Ca%20href=
book commented 8 years ago

Step 3: cc7095d2faf012f34179381fb045e8dea94da6b9 uses the uri() method everywhere possible.

The only remaining 404 in a wallflower run are:

404 /blog/fonts/glyphicons-halflings-regular.eot
404 /blog/fonts/glyphicons-halflings-regular.woff
404 /blog/fonts/glyphicons-halflings-regular.ttf
404 /blog/fonts/glyphicons-halflings-regular.svg