0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-07 18:48:39 +00:00

Merge pull request #4718 from naturalcrit/v3.21-fixes

fix for admin pages to work
This commit is contained in:
Víctor Losada Hernández
2026-04-05 16:35:16 +02:00
committed by GitHub
+3 -3
View File
@@ -25,12 +25,12 @@
let prefix = ''; let prefix = '';
if (url.includes('://homebrewery-stage.')) { if (url && url?.includes('://homebrewery-stage.')) {
prefix = `Stage `; prefix = `Stage `;
} else if (url.includes('://homebrewery-pr-')) { } else if (url?.includes('://homebrewery-pr-')) {
const match = url.match(/pr-(\d+)/); const match = url.match(/pr-(\d+)/);
if (match) prefix = `PR-${match[1]} `; if (match) prefix = `PR-${match[1]} `;
} else if (url.includes('://localhost')) { } else if (url?.includes('://localhost')) {
prefix = 'Local '; prefix = 'Local ';
} }