apostrophecms / apostrophe-sandbox

This sandbox site is the basis for our live demo. For your own projects, you can use apostrophe-boilerplate as a more streamlined, cleaner point of departure via the apostrophe-cli tool.
MIT License
112 stars 41 forks source link

Blog page type links point to invalid URLs when used on the home page #34

Closed ViktorNova closed 9 years ago

ViktorNova commented 10 years ago

Hello! I am having issues with the blog, just set a new site up days ago according to instructions, and the blog is not fully working, at least when used on the home page. The blogs titles are shown on the blog page type, but the links point to a weird URL and don't work.

Edit: after further plunking, I realized a few things - when the homepage is page type 'Blog', it seems to just be dropping the domain name from the URL slug. (not the case when any other page in the site) I only realized this when looking at the page in Firefox, the bogus URLs are different between Firefox & Chromium

Here's an example link to a blog post from blog home page- On Chromium: http://0.0.7.222/03/05/new-site On Firefox: http://2014/03/05/new-site

Weird, huh?

The URL in the RSS feed is also wrong, but is the same on both browsers: http://2014/03/05/new-site RSS feed at least displays properly on firefox even though the links don't work, but this is probably a separate issue. The links in the RSS feed on any blog type page that is not the home page are correct

BTW, is this the proper place for me to be reporting bugs like this? I am making a site using apostrophe-sandbox (and doing git pulls every so often), but I'm not 100% sure where issues like these fit best into your development model and I want to be as helpful as possible. Thanks!

ViktorNova commented 10 years ago

Also, the "View articles by month" URL points to what appears to be a valid URL (on my site at the moment the link points to http://viktornova.com/2014/03 on both browsers) but when clicked it goes to a "What! We don't have whatever you are looking for." page

I figure this is related, since this behavior also only happens on the home page when it is a blog type, this link on other blog pages works as expected

boutell commented 9 years ago

This has been resolved. You can use either apostrophe-blog or apostrophe-blog-2 as a homepage.