Skip to content

Commit

Permalink
Fix Search Console errors (#446)
Browse files Browse the repository at this point in the history
* Redirect `/list(s)` to the Harikatha subscription page
* Fix the Feedback link on the audio page. This fixes an issue left after #352 (`env` global was removed).
  • Loading branch information
anantakrishna authored Jan 14, 2024
1 parent c6ab6b5 commit f1d3b14
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
}
]
}
],
"redirects": [
{
"source": "/list*",
"type": 302,
"destination": "https://view.flodesk.com/pages/6454088302298deb828d9ab0"
}
]
},
"emulators": {
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/audio.11tydata.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ module.exports = {
// Download URL
fileUrl: (data) =>
`${process.env.STORAGE_BASE_URL}/${data.audio.fileId}.mp3`,
// Computing the Feedback URL here because the env variables are not available in templates
feedbackUrl: (data) =>
`${process.env.FEEDBACK_FORM_AUDIOS}${data.audio.fileId}`,
// Compiling content details for the audio player
contentDetails: ({
audio: {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/audio.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ <h1 class="text-xl font-bold">{{ audio.title }}</h1>
</a>
<!-- Feedback -->
<a
href="{{ env.FEEDBACK_FORM_AUDIOS }}{{ audio.fileId }}"
href="{{ feedbackUrl }}"
target="_blank"
class="inline-flex items-center space-x-1"
title="Help us improve! Give feedback about the sound quality, title, contents, language, etc of this file"
Expand Down

0 comments on commit f1d3b14

Please sign in to comment.