Wolfgang Scherer avatar Wolfgang Scherer committed 5d7025a

ws-vacation/index.html: disable javascript to add trailing slash for testing https://bitbucket.org/site/master/issue/3856/usernamebitbucketorg-lacks-proper-redirect.

Comments (0)

Files changed (1)

ws-vacation/index.html

     <script type="text/javascript"><!--
       // Add a trailing slash to the URL, if it does not end in `.html' or `/'.
       // This is needed for relative links to work on bitbucket.org
-      my_url = document.location.href;
-      query = [];
-      spc_pos = my_url.indexOf('?');
-      if (spc_pos >= 0) {
-          query.unshift(my_url.substr(spc_pos));
-	  my_url = my_url.substr(0, spc_pos);
-      }
-      spc_pos = my_url.indexOf('#');
-      if (spc_pos >= 0) {
-          query.unshift(my_url.substr(spc_pos));
-	  my_url = my_url.substr(0, spc_pos);
-      }
-      if (my_url.indexOf('.html') < my_url.length - '.html'.length) {
-          if (my_url.substr(my_url.length - 1) != '/') {
-	      my_url += '/' + query.join('');
-	      document.location.href = my_url;
-          }
-      }
+
+      // my_url = document.location.href;
+      // query = [];
+      // spc_pos = my_url.indexOf('?');
+      // if (spc_pos >= 0) {
+      //     query.unshift(my_url.substr(spc_pos));
+      // 	  my_url = my_url.substr(0, spc_pos);
+      // }
+      // spc_pos = my_url.indexOf('#');
+      // if (spc_pos >= 0) {
+      //     query.unshift(my_url.substr(spc_pos));
+      // 	  my_url = my_url.substr(0, spc_pos);
+      // }
+      // if (my_url.indexOf('.html') < my_url.length - '.html'.length) {
+      //     if (my_url.substr(my_url.length - 1) != '/') {
+      // 	      my_url += '/' + query.join('');
+      // 	      document.location.href = my_url;
+      //     }
+      // }
+
       $(document).ready(
 	  function() {
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.