Support /meeting path alongside /survey and root paths
This commit is contained in:
+1
-1
@@ -798,7 +798,7 @@ async function changeStatus(id, status) {
|
||||
async function generateLink(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
|
||||
|
||||
Reference in New Issue
Block a user