diff --git a/src/js/UrlBuilder.js b/src/js/UrlBuilder.js
index <HASH>..<HASH> 100644
--- a/src/js/UrlBuilder.js
+++ b/src/js/UrlBuilder.js
@@ -25,8 +25,9 @@ class UrlBuilder {
 
         let host = (this.route.domain || this.ziggy.baseDomain).replace(/\/+$/, '');
 
-        if (this.ziggy.basePort && (host.replace(/\/+$/, '') === this.ziggy.baseDomain.replace(/\/+$/, '')))
-            host = this.ziggy.baseDomain + ':' + this.ziggy.basePort;
+        if (this.ziggy.basePort) {
+            host = `${host}:${this.ziggy.basePort}`;
+        }
 
         return this.ziggy.baseProtocol + '://' + host + '/';
     }
Remove check for matching base domain and update host string concatenation to *append* the port rather than reconstructing the whole string