From 8a8374310686bfbffd1fc29cf362fe1f2b3f066d Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Wed, 3 Feb 2021 21:37:18 +0000
Subject: [PATCH] Remove extra / from /player links

---
 node/bindata.go           | 6 +++---
 node/templates/index.html | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/node/bindata.go b/node/bindata.go
index 52b1cf76..7d20dfbb 100644
--- a/node/bindata.go
+++ b/node/bindata.go
@@ -1043,7 +1043,7 @@ var _templatesIndexHtml = []byte(`<!DOCTYPE html>
           <ul>
             {{range $m := .Mounts}}
             <li>
-              <a href="/player/{{$m.Mount.Path}}"
+              <a href="/player{{$m.Mount.Path}}"
                  {{if $m.Mount.RelayUrl}}
                  data-toggle="tooltip" data-delay="300" title="relay of {{$m.Mount.RelayUrl}}"
                  {{else if $m.IcecastMount.GetDescription}}
@@ -1056,7 +1056,7 @@ var _templatesIndexHtml = []byte(`<!DOCTYPE html>
               <ul>
                 {{range $tm := $m.TransMounts}}
                 <li>
-                  <a href="/player/{{$tm.Mount.Path}}"
+                  <a href="/player{{$tm.Mount.Path}}"
                      data-toggle="tooltip" data-delay="300" title="{{$tm.Mount.TranscodeParams.String}}"
                      >{{$tm.Mount.Path}}</a>
                   <a href="/{{$tm.Mount.Path}}.m3u">(m3u)</a>
@@ -1122,7 +1122,7 @@ func templatesIndexHtml() (*asset, error) {
 		return nil, err
 	}
 
-	info := bindataFileInfo{name: "templates/index.html", size: 3208, mode: os.FileMode(420), modTime: time.Unix(1612375922, 0)}
+	info := bindataFileInfo{name: "templates/index.html", size: 3206, mode: os.FileMode(420), modTime: time.Unix(1612388216, 0)}
 	a := &asset{bytes: bytes, info: info}
 	return a, nil
 }
diff --git a/node/templates/index.html b/node/templates/index.html
index 664abafc..844e51d3 100644
--- a/node/templates/index.html
+++ b/node/templates/index.html
@@ -28,7 +28,7 @@
           <ul>
             {{range $m := .Mounts}}
             <li>
-              <a href="/player/{{$m.Mount.Path}}"
+              <a href="/player{{$m.Mount.Path}}"
                  {{if $m.Mount.RelayUrl}}
                  data-toggle="tooltip" data-delay="300" title="relay of {{$m.Mount.RelayUrl}}"
                  {{else if $m.IcecastMount.GetDescription}}
@@ -41,7 +41,7 @@
               <ul>
                 {{range $tm := $m.TransMounts}}
                 <li>
-                  <a href="/player/{{$tm.Mount.Path}}"
+                  <a href="/player{{$tm.Mount.Path}}"
                      data-toggle="tooltip" data-delay="300" title="{{$tm.Mount.TranscodeParams.String}}"
                      >{{$tm.Mount.Path}}</a>
                   <a href="/{{$tm.Mount.Path}}.m3u">(m3u)</a>
-- 
GitLab