Vertafore/docular

Direct links result in 404 errors

Opened this issue · 4 comments

When directly linking to a page in docular a 404 error is displayed instead of taking you to the page.
for example:
http://grunt-docular.com/documentation/docular/docularconfigure/index

Also if you refresh a page a 404 error displays.

I'm using chrome browser.

Workaround: take the url from the browser window and add a #! at the root of docular install.

eg http://grunt-docular.com/documentation/docular/docularconfigure/index
becomes http://grunt-docular.com/#!/documentation/docular/docularconfigure/index

Yeah, sadly the github io doesn't actually 'serve' pages.. and I'm not really sure there's a way to tell it to just serve everything from index.html (which is how the html5 pages work).

I was having the issue on my documentation server too... so you're saying if I put in an htaccess rule to have everything route to index.html it would work without changing the links?

Yes, it should. That's how the html5 mode pages work. Here's some quick details:

https://github.com/angular-ui/ui-router/wiki/Frequently-Asked-Questions#how-to-configure-your-server-to-work-with-html5mode

Of course this doesn't make it crawlable by google or anything.. it just makes it nice for people.