Skip to content

Commit

Permalink
Redirect Bandcamp /music to Tent artist page
Browse files Browse the repository at this point in the history
  • Loading branch information
sgvictorino committed Mar 21, 2024
1 parent 7874877 commit 2a3ae7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets/javascripts/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ function redirect(url, type, initiator, forceRedirection, incognito) {
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)
Expand Down

0 comments on commit 2a3ae7d

Please sign in to comment.