We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b899b2d commit 158f274Copy full SHA for 158f274
web_src/js/features/common-global.js
@@ -389,7 +389,8 @@ export function initGlobalButtons() {
389
*/
390
export function checkAppUrl() {
391
const curUrl = window.location.href;
392
- if (curUrl.startsWith(appUrl)) {
+ // some users visit "https://domain/gitea" while appUrl is "https://domain/gitea/", there should be no warning
393
+ if (curUrl.startsWith(appUrl) || `${curUrl}/` === appUrl) {
394
return;
395
}
396
if (document.querySelector('.page-content.install')) {
0 commit comments