Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • cloud_sptheme cloud_sptheme
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • doc-utils
  • cloud_spthemecloud_sptheme
  • Issues
  • #24
Closed
Open
Issue created Nov 30, 2015 by Bitbucket Importer@bitbucket_importerOwner

Javascript for sticky sidebar doesn't work locally

Created originally on Bitbucket by Anonymous

In file "cloud.js_t", on line 63, there's the following statement:

#!javascript

var hosturl = document.location.href.match(/^[a-z0-9]+:(\/\/)?([^@]*@)?[^/]+/)[0],

This doesn't handle local FILE URLs, which may have the following form (at least on Windows machines):

file:///C:/Project/ThemeTest/build/html/2015.html

Problem seems to be fixed by changing regexp to:

#!javascript

var hosturl = document.location.href.match(/^[a-z0-9]+:(\/\/|\/\/\/)?([^@]*@)?[^/]+/)[0],
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking