diff --git a/routes/profileEditor.vue b/routes/profileEditor.vue
index 9944eecc1..1138b6a8a 100644
--- a/routes/profileEditor.vue
+++ b/routes/profileEditor.vue
@@ -112,11 +112,9 @@
-
diff --git a/server/routes/pronounce.js b/server/routes/pronounce.js
index 715d7d0aa..bd9ffe78c 100644
--- a/server/routes/pronounce.js
+++ b/server/routes/pronounce.js
@@ -8,8 +8,8 @@ import S3 from 'aws-sdk/clients/s3.js';
const router = Router();
-router.get('/pronounce/:voice/*', handleErrorAsync(async (req, res) => {
- const text = req.params[0];
+router.get('/pronounce/:voice/:pronunciation(*)', handleErrorAsync(async (req, res) => {
+ const text = req.params.pronunciation;
if (!text || text.length > 256) {
return res.status(404).json({error: 'Not found'});