diff --git a/app/site/handle.go b/app/site/handle.go
index 8c6b66e..16219f5 100644
--- a/app/site/handle.go
+++ b/app/site/handle.go
@@ -28,7 +28,7 @@ func Handle(path []string, as *app.State, ps *cutil.PageState) (string, layout.P
 	case util.AppKey:
 		msg := "\n  " +
 			"<meta name=\"go-import\" content=\"github.com/kyleu/npn git %s\">\n  " +
-			"<meta name=\"go-source\" content=\"github.com/kyleu/npn %s %s/tree/master{/dir} %s/blob/master{/dir}/{file}#L{line}\">"
+			"<meta name=\"go-source\" content=\"github.com/kyleu/npn %s %s/tree/main{/dir} %s/blob/main{/dir}/{file}#L{line}\">"
 		ps.HeaderContent = fmt.Sprintf(msg, util.AppSource, util.AppSource, util.AppSource, util.AppSource)
 		return "", &vsite.GoSource{}, []string{"Source**code"}, nil
 	case keyAbout:
diff --git a/doc/module/android.md b/doc/module/android.md
index e11b7d2..5ccc6f0 100644
--- a/doc/module/android.md
+++ b/doc/module/android.md
@@ -2,7 +2,7 @@
 
 This is a module for [Project Forge](https://projectforge.dev). It provides a webview-based application and Android build
 
-https://github.com/kyleu/projectforge/tree/master/module/android
+https://github.com/kyleu/projectforge/tree/main/module/android
 
 ### License 
 
diff --git a/doc/module/core.md b/doc/module/core.md
index 78de40c..473a0fd 100644
--- a/doc/module/core.md
+++ b/doc/module/core.md
@@ -2,7 +2,7 @@
 
 This is a module for [Project Forge](https://projectforge.dev). It provides common utilities for a Go application.
 
-https://github.com/kyleu/projectforge/tree/master/module/core
+https://github.com/kyleu/projectforge/tree/main/module/core
 
 ### License
 
diff --git a/doc/module/desktop.md b/doc/module/desktop.md
index 7e4f25c..635fca4 100644
--- a/doc/module/desktop.md
+++ b/doc/module/desktop.md
@@ -2,7 +2,7 @@
 
 This is a module for [Project Forge](https://projectforge.dev). It provides a desktop application using the system's webview
 
-https://github.com/kyleu/projectforge/tree/master/module/desktop
+https://github.com/kyleu/projectforge/tree/main/module/desktop
 
 ### License
 
diff --git a/doc/module/filesystem.md b/doc/module/filesystem.md
index ec7321c..3e73d9f 100644
--- a/doc/module/filesystem.md
+++ b/doc/module/filesystem.md
@@ -2,7 +2,7 @@
 
 This is a module for [Project Forge](https://projectforge.dev). It provides an abstraction around local and remote filesystems
 
-https://github.com/kyleu/projectforge/tree/master/module/filesystem
+https://github.com/kyleu/projectforge/tree/main/module/filesystem
 
 ### License 
 
diff --git a/doc/module/ios.md b/doc/module/ios.md
index 526ca17..01fccf4 100644
--- a/doc/module/ios.md
+++ b/doc/module/ios.md
@@ -2,7 +2,7 @@
 
 This is a module for [Project Forge](https://projectforge.dev). It provides a webview-based application and iOS build
 
-https://github.com/kyleu/projectforge/tree/master/module/ios
+https://github.com/kyleu/projectforge/tree/main/module/ios
 
 ### License 
 
diff --git a/doc/module/marketing.md b/doc/module/marketing.md
index 03d7c6d..1ab2cb1 100644
--- a/doc/module/marketing.md
+++ b/doc/module/marketing.md
@@ -2,7 +2,7 @@
 
 This is a module for [Project Forge](https://projectforge.dev). It provides a website for downloads, tutorials, and marketing
 
-https://github.com/kyleu/projectforge/tree/master/module/marketing
+https://github.com/kyleu/projectforge/tree/main/module/marketing
 
 ### License
 
diff --git a/doc/module/notarize.md b/doc/module/notarize.md
index 4759ad9..2973212 100644
--- a/doc/module/notarize.md
+++ b/doc/module/notarize.md
@@ -2,7 +2,7 @@
 
 This is a module for [Project Forge](https://projectforge.dev). It sends files to Apple for notarization.
 
-https://github.com/kyleu/projectforge/tree/master/module/notarize
+https://github.com/kyleu/projectforge/tree/main/module/notarize
 
 ### License
 
diff --git a/doc/module/oauth.md b/doc/module/oauth.md
index 35d7668..fc2e6ee 100644
--- a/doc/module/oauth.md
+++ b/doc/module/oauth.md
@@ -2,7 +2,7 @@
 
 This is a module for [Project Forge](https://projectforge.dev). It provides logins and session management for many OAuth providers.
 
-https://github.com/kyleu/projectforge/tree/master/module/oauth
+https://github.com/kyleu/projectforge/tree/main/module/oauth
 
 ### License
 
diff --git a/doc/module/scripting.md b/doc/module/scripting.md
index 22394d4..2eaeec6 100644
--- a/doc/module/scripting.md
+++ b/doc/module/scripting.md
@@ -2,7 +2,7 @@
 
 This is a module for [Project Forge](https://projectforge.dev). It allows the execution of JavaScript files using a built-in interpreter.
 
-https://github.com/kyleu/projectforge/tree/master/module/scripting
+https://github.com/kyleu/projectforge/tree/main/module/scripting
 
 ### License
 
diff --git a/doc/module/search.md b/doc/module/search.md
index d670816..ddd8dfe 100644
--- a/doc/module/search.md
+++ b/doc/module/search.md
@@ -2,7 +2,7 @@
 
 This is a module for [Project Forge](https://projectforge.dev). It adds search facilities to the top-level navigation bar.
 
-https://github.com/kyleu/projectforge/tree/master/module/search
+https://github.com/kyleu/projectforge/tree/main/module/search
 
 ### License
 
diff --git a/doc/module/themecatalog.md b/doc/module/themecatalog.md
index ffa675b..39391d8 100644
--- a/doc/module/themecatalog.md
+++ b/doc/module/themecatalog.md
@@ -2,7 +2,7 @@
 
 This is a module for [Project Forge](https://projectforge.dev). It includes a dozen default themes, and facilities to create additional.
 
-https://github.com/kyleu/projectforge/tree/master/module/themecatalog
+https://github.com/kyleu/projectforge/tree/main/module/themecatalog
 
 ### License
 
diff --git a/doc/module/upgrade.md b/doc/module/upgrade.md
index 5f0a375..14d67bc 100644
--- a/doc/module/upgrade.md
+++ b/doc/module/upgrade.md
@@ -2,7 +2,7 @@
 
 This is a module for [Project Forge](https://projectforge.dev). It provides in-place version upgrades using GitHub Releases.
 
-https://github.com/kyleu/projectforge/tree/master/module/upgrade
+https://github.com/kyleu/projectforge/tree/main/module/upgrade
 
 ### License
 
diff --git a/doc/module/user.md b/doc/module/user.md
index dfa6416..cb0ac02 100644
--- a/doc/module/user.md
+++ b/doc/module/user.md
@@ -2,7 +2,7 @@
 
 This is a module for [Project Forge](https://projectforge.dev). It provides classes for representing persistent user records and wires them throughout the application 
 
-https://github.com/kyleu/projectforge/tree/master/module/user
+https://github.com/kyleu/projectforge/tree/main/module/user
 
 ### License
 
diff --git a/doc/module/wasmserver.md b/doc/module/wasmserver.md
index 64849b8..92cfec8 100644
--- a/doc/module/wasmserver.md
+++ b/doc/module/wasmserver.md
@@ -2,7 +2,7 @@
 
 This is a module for [Project Forge](https://projectforge.dev). It allows you to build your http server as normal, but load it as a WebAssembly module or Service Worker. 
 
-https://github.com/kyleu/projectforge/tree/master/module/wasmserver
+https://github.com/kyleu/projectforge/tree/main/module/wasmserver
 
 ### License
 
diff --git a/doc/module/websocket.md b/doc/module/websocket.md
index 2993dc5..c3eccec 100644
--- a/doc/module/websocket.md
+++ b/doc/module/websocket.md
@@ -2,7 +2,7 @@
 
 This is a module for [Project Forge](https://projectforge.dev). It provides a WebSocket API
 
-https://github.com/kyleu/projectforge/tree/master/module/websocket
+https://github.com/kyleu/projectforge/tree/main/module/websocket
 
 ### License
 
diff --git a/views/components/view/URL.html b/views/components/view/URL.html
index a21fd2e..ddec412 100644
--- a/views/components/view/URL.html
+++ b/views/components/view/URL.html
@@ -42,7 +42,7 @@
     if !strings.HasPrefix(path, "/") {
       path = "/" + path
     }
-    u := util.AppSource + "/blob/master" + path
+    u := util.AppSource + "/blob/main" + path
   -%}
   {%= URL(u, origPath, false, ps) %}
 {% endstripspace %}{% endfunc %}
diff --git a/views/components/view/URL.html.go b/views/components/view/URL.html.go
index b0f734c..c28598e 100644
--- a/views/components/view/URL.html.go
+++ b/views/components/view/URL.html.go
@@ -110,7 +110,7 @@ func StreamCodeLink(qw422016 *qt422016.Writer, path string, title string, ps *cu
 	if !strings.HasPrefix(path, "/") {
 		path = "/" + path
 	}
-	u := util.AppSource + "/blob/master" + path
+	u := util.AppSource + "/blob/main" + path
 
 //line views/components/view/URL.html:47
 	StreamURL(qw422016, u, origPath, false, ps)