Support /meeting path alongside /survey and root paths

This commit is contained in:
pongpon pitisuk
2026-09-17 15:32:01 +07:00
parent e0ed82fa74
commit fb505c53d5
5 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -374,7 +374,7 @@ async function teacherDuplicateSurvey(id) {
async function teacherGenerateLink(id) {
try {
const data = await API.post('surveys.php?action=generateLink', { id });
const basePath = window.location.pathname.includes('/survey') ? '/survey' : '';
const basePath = getAppBasePath();
const fullUrl = data.full_url || `${window.location.origin}${basePath}/respond.php?link=${data.unique_link}`;
// Find survey title