about summary refs log tree commit diff stats
path: root/src/assets
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2024-03-22 10:18:49 +0000
committerGitHub <noreply@github.com>2024-03-22 10:18:49 +0000
commit1e53685d4ebda5fc0977e802c36bdb96ac0ee974 (patch)
tree39826d4811cee0d42c08c85155e7b373876ef6bd /src/assets
parentAdded MeMe https://github.com/libredirect/browser_extension/issues/888 (diff)
parentRedirect Bandcamp /music to Tent artist page (diff)
downloadlibredirect-1e53685d4ebda5fc0977e802c36bdb96ac0ee974.zip
Merge pull request #909 from sgvictorino/tent-redirect-music-path
Redirect Bandcamp /music to Tent artist page
Diffstat (limited to 'src/assets')
-rw-r--r--src/assets/javascripts/services.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js
index 01e79493..c7f12bc0 100644
--- a/src/assets/javascripts/services.js
+++ b/src/assets/javascripts/services.js
@@ -367,7 +367,7 @@ function rewrite(url, frontend, randomInstance) {
 			if (url.hostname.endsWith('bandcamp.com')) {
 				const regex = /^(.*)\.bandcamp\.com/.exec(url.hostname)
 				const artist = regex[1]
-				if (url.pathname == '/') {
+				if (url.pathname == '/' || url.pathname == '/music') {
 					return `${randomInstance}/artist.php?name=${artist}`
 				} else {
 					const regex = /^\/(.*)\/(.*)/.exec(url.pathname)