From c522eddb7daa88563d27c77a51bb314cd873d2c3 Mon Sep 17 00:00:00 2001
From: Noel <39939032+devslashnoel@users.noreply.github.com>
Date: Wed, 7 Oct 2026 16:42:18 +1300
Subject: [PATCH 1/2] Add personalised instructions for Windows and Mac
---
_doc/map-drive-mac.md | 20 ++++++++++++++------
_doc/map-drive-windows.md | 24 +++++++++++++++---------
assets/doc/personalised-instructions.js | 23 +++++++++++++++++++++++
3 files changed, 52 insertions(+), 15 deletions(-)
create mode 100644 assets/doc/personalised-instructions.js
diff --git a/_doc/map-drive-mac.md b/_doc/map-drive-mac.md
index 09a03e7..dfc280a 100644
--- a/_doc/map-drive-mac.md
+++ b/_doc/map-drive-mac.md
@@ -7,15 +7,20 @@ categories: mac howto drive
2. Click on the **Finder** icon, press command ⌘ + K to bring up the **Connect to Server** window.
-3. In the Server Address field, enter the drive location you were sent when the drive was created:
+3. In the Server Address field,
+ enter the drive location you were sent when the drive was created:
+ enter this drive location:
- a. For drives created after mid-September 2026, enter `smb://research.drive.auckland.ac.nz/` followed by the name of the Research Drive. It will look similar to this:
- `smb://research.drive.auckland.ac.nz/ressci202400035-drive-name`
+
+
a. For drives created after mid-September 2026, enter smb://research.drive.auckland.ac.nz/ followed by the name of the Research Drive. It will look similar to this:
+ smb://research.drive.auckland.ac.nz/ressci202400035-drive-name
- OR
+
OR
- b. For drives created before mid-September 2026, enter `smb://files.auckland.ac.nz/research/` followed by the name of the Research Drive. It will look similar to this:
- `smb://files.auckland.ac.nz/research/ressci202400035-drive-name`
+
b. For drives created before mid-September 2026, enter smb://files.auckland.ac.nz/research/ followed by the name of the Research Drive. It will look similar to this:
+ smb://files.auckland.ac.nz/research/ressci202400035-drive-name
+
+
4. Click **+** to add the Research Drive location to **Favourite Servers**
@@ -26,3 +31,6 @@ categories: mac howto drive
If prompted, enter your University username and password ensuring the Domain is UOA.
{:width="600px"}
+
+
+
\ No newline at end of file
diff --git a/_doc/map-drive-windows.md b/_doc/map-drive-windows.md
index e04cce4..695dcb3 100644
--- a/_doc/map-drive-windows.md
+++ b/_doc/map-drive-windows.md
@@ -19,15 +19,18 @@ categories: windows admin user howto drive
4. In the **Drive** list, select a free drive letter.
-5. In the **Folder** box, enter the drive location you were sent when the drive was created:
-
- a. For drives created after mid-September 2026, enter `\\research.drive.auckland.ac.nz\` followed by the name of the Research Drive. It will look similar to this:
- `\\research.drive.auckland.ac.nz\ressci202400035-drive-name`
-
- OR
-
- b. For drives created before mid-September 2026, enter `\\files.auckland.ac.nz\research\` followed by the name of the Research Drive. It will look similar to this:
- `\\files.auckland.ac.nz\research\ressci202400035-drive-name`
+5. In the **Folder** box,
+ enter the drive location you were sent when the drive was created:
+ enter this drive location:
+
+
+
a. For drives created after mid-September 2026, enter \\research.drive.auckland.ac.nz\ followed by the name of the Research Drive. It will look similar to this:
+ \\research.drive.auckland.ac.nz\ressci202400035-drive-name
+
OR
+
b. For drives created before mid-September 2026, enter \\files.auckland.ac.nz\research\ followed by the name of the Research Drive. It will look similar to this:
+ \\files.auckland.ac.nz\research\ressci202400035-drive-name
+
+
6. Make sure that **Reconnect at login** remains ticked.
@@ -41,3 +44,6 @@ categories: windows admin user howto drive
{:width="500"}
+
+
+
\ No newline at end of file
diff --git a/assets/doc/personalised-instructions.js b/assets/doc/personalised-instructions.js
new file mode 100644
index 0000000..8248600
--- /dev/null
+++ b/assets/doc/personalised-instructions.js
@@ -0,0 +1,23 @@
+/** personalised-instructions.js - Script for personalising Research Drive setup instructions. Makes setup instructions include the drive name if it is part of the URL.
+*/
+function initPersonalisedInstructions(os) {
+ let prefix = "\\\\";
+ let divider = "\\";
+ if (os !== "windows") {
+ prefix = "smb://";
+ divider = "/";
+ }
+ let params = new URLSearchParams(document.location.search);
+ let basePath = `${prefix}files.auckland.ac.nz${divider}research${divider}`;
+ if (params.get("backend") !== null && params.get("backend") === "vast") {
+ basePath = `${prefix}research.drive.auckland.ac.nz${divider}`
+ }
+ let driveName = params.get("name");
+ if (driveName) {
+ document.getElementById("defaultEnterMessage").style.display = "none";
+ document.getElementById("personalisedEnterMessage").style.display = "inline";
+ document.getElementById("defaultPathInfo").style.display = "none";
+ document.getElementById("personalisedPathInfo").style.display = "block";
+ document.getElementById("personalisedPathInfo").innerHTML = basePath + driveName;
+ }
+}
From 5ff4af530657a8671292b5b6e5b91f955754c41f Mon Sep 17 00:00:00 2001
From: Noel <39939032+devslashnoel@users.noreply.github.com>
Date: Wed, 7 Oct 2026 16:45:25 +1300
Subject: [PATCH 2/2] Potential fix for pull request finding 'CodeQL /
Client-side cross-site scripting'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
---
assets/doc/personalised-instructions.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/assets/doc/personalised-instructions.js b/assets/doc/personalised-instructions.js
index 8248600..d49f451 100644
--- a/assets/doc/personalised-instructions.js
+++ b/assets/doc/personalised-instructions.js
@@ -18,6 +18,6 @@ function initPersonalisedInstructions(os) {
document.getElementById("personalisedEnterMessage").style.display = "inline";
document.getElementById("defaultPathInfo").style.display = "none";
document.getElementById("personalisedPathInfo").style.display = "block";
- document.getElementById("personalisedPathInfo").innerHTML = basePath + driveName;
+ document.getElementById("personalisedPathInfo").textContent = basePath + driveName;
}
}