Skip to content

Commit

Permalink
Merge pull request #909 from sgvictorino/tent-redirect-music-path
Browse files Browse the repository at this point in the history
Redirect Bandcamp /music to Tent artist page
  • Loading branch information
ManeraKai committed Mar 22, 2024
2 parents b3457fa + 2a3ae7d commit 1e53685
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 @@ -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)
Expand Down

0 comments on commit 1e53685

Please sign in to comment.