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:
+3
-3
@@ -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 ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user