porwig / gallery

AngularJS image gallery with search and pagination
0 stars 0 forks source link

Routing for SEO & Unique URLs #2

Open porwig opened 9 years ago

porwig commented 9 years ago

I want the view for each main image to have a unique SEF URL. What's the best way to implement that? With a slug? Need to be able to check that a URL isn't already taken. How to integrate routing with a CMS - does the Angular gallery stand alone or does it use the routing API for the CMS?

porwig commented 9 years ago

This seems to be complicated by the way Google and other robots crawl & index websites. I may need to look at something like PhantomJS (headless browser that serves pre-rendered content when a robot makes a request), or Prerender.io. Do these solutions give the right URLs in search results? Do they include microdata?

porwig commented 8 years ago

I think the best path to solve this now is to use ui-router. The v1 goal can be just to get it working, the v2 goal can be to automatically create slugs (there are plugins to help with that), and be able to retrieve them from the database.