sandstorm-io / sandstorm

Sandstorm is a self-hostable web productivity suite. It's implemented as a security-hardened web app package manager.
https://sandstorm.io
Other
6.71k stars 704 forks source link

Make page title statically available #1397

Open kpreid opened 8 years ago

kpreid commented 8 years ago

A link-for-sharing like https://xamar.sandcats.io/shared/Bqa9dftNbc1Ni06D-SgBdkFuM_iky8VHAlTw0Rk1lzN (and preferably all links to a grain) should have a HTML <title> element containing title text from the application, not just “Sandstorm”. This helps the link be identified usefully by headless title-fetchers, as used by many link sharing systems.

This report inspired by my having put the above link into Pocket, where it got the abovementioned useless title. If I put multiple docs hosted on Sandstorm in, I would have no friendly way to tell them apart at all.

paulproteus commented 8 years ago

This is simultaneously a very reasonable request and one that is harder to implement than I wish, due to our use of Meteor.

Some links for our future work in fixing this:

https://stackoverflow.com/questions/14036248/meteor-setting-the-document-title

http://www.manuel-schoebel.com/blog/meteor-and-seo suggests another option, which is to ask non-browser user-agents to use escaped_fragment but apparently that is deprecated by Google's crawler < https://ignitevisibility.com/google-depreciates-ajax-seo-crawling-scheme-how-to-deal-with-it/> and I have no reason to believe it's supported by Pocket. So setting an actual TITLE value is probably the thing to do.