|
|
|
@ -30,7 +30,7 @@ type MetadataPage struct {
@@ -30,7 +30,7 @@ type MetadataPage struct {
|
|
|
|
|
func IndexHandler(w http.ResponseWriter, r *http.Request) { |
|
|
|
|
middleware.EnableCors(&w) |
|
|
|
|
|
|
|
|
|
isIndexRequest := r.URL.Path == "/" || r.URL.Path == "/index.html" |
|
|
|
|
isIndexRequest := r.URL.Path == "/" || filepath.Base(r.URL.Path) == "index.html" || filepath.Base(r.URL.Path) == "" |
|
|
|
|
|
|
|
|
|
// For search engine bots and social scrapers return a special
|
|
|
|
|
// server-rendered page.
|
|
|
|
|