Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
core
core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 234
    • Issues 234
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 5
    • Merge Requests 5
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • hubzilla
  • corecore
  • Issues
  • #1525

Closed
Open
Opened Feb 21, 2021 by Adnan Shameem@adnan360

Hubzilla refers to domain root for CSS/JS paths even when installed on subdirectory

I have an Apache based localhost setup for testing stuff. As much as I looked into instructions (this and others) for installing Hubzilla, they are for installing and accessing Hubzilla directly from a domain (not in nested directories). That means they're intended to access Hubzilla through http://localhost and not something like http://localhost/hubzilla. But I want other things to run as well on my setup, so I tried to install it on a subdirectory.

When run from subdirectory the problem starts from the setup and continues. No styles show up.

Anyways, I've ignored it and chosen http://192.168.x.xxx/hubzilla as "Website URL" during setup that in turn wrote the url in .htconfig.php:

App::$config['system']['baseurl'] = 'http://192.168.x.xxx/hubzilla';

But it includes the CSS/JS from domain root instead of the value on .htconfig.php, e.g.

<link rel="stylesheet" href="http://192.168.x.xxx/view/css/bootstrap-red.css?v=5.2.2" type="text/css" media="screen">
...
<script src="http://192.168.x.xxx/view/js/jquery.js?v=5.2.2" ></script>
...

So this results in pages to only show HTML and no styles or scripts, resulting in unusable installation.

hubzilla-1021

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: hubzilla/core#1525