google / physical-web

The Physical Web: walk up and use anything
http://physical-web.org
Apache License 2.0
5.99k stars 665 forks source link

Meta Data with a 301/302 Redirect #797

Closed watstyl08 closed 8 years ago

watstyl08 commented 8 years ago

Say I'm broadcasting the following URL;

https://blank.info/123 The meta-data on this URL is "This is a blank domain"

Say I have a 301/302 redirect from blank.info to another URL --> https://destination.com/123 The meta-data on this URL is "This is the Destination domain"

Will Android/Chrome display the meta-data of blank.info or destination.com when it detects my eddystone beacon?

nondebug commented 8 years ago

It will display the metadata for the destination, assuming the Physical Web service is able to crawl the destination page.

watstyl08 commented 8 years ago

Do you know if it will also display the URL for the destination?

ie; if we're pointing to the New York Times from blank.info, would the notification and/or today screen read...

New York Times - Breaking News, World News & Multimedia http://www.nytimes.com/

scottjenson commented 8 years ago

For our PWS, it always resolves the URL first, THEN gets the meta data so everything displayed will be for the final destination page (assuming the PWS can reach it properly)