mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 20:28:15 +03:00
Allow non-root paths for index.html when returning server-rendered metadata page. Closes #227
This commit is contained in:
parent
dfeba53f08
commit
2aa9a86e3d
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue