Giter Club home page Giter Club logo

Comments (8)

bouncepaw avatar bouncepaw commented on July 18, 2024

It is not yet possible.

More people requested it. Can you tell me about your use case, why do you need that?

from mycorrhiza.

decentral1se avatar decentral1se commented on July 18, 2024

Oh yeh, need this too. Use case: pubnix / shared server environment where you have ~/public_html sharing from your home directory and no access to the root of the domain or Nginx configuration as adminstrator. I've just tried this and the software assumes it controls the root of the domain.

from mycorrhiza.

bouncepaw avatar bouncepaw commented on July 18, 2024

Use case: pubnix / shared server environment where you have ~/public_html sharing from your home directory

How is it related? Mycorrhiza wikis can be stored in any directory.

from mycorrhiza.

decentral1se avatar decentral1se commented on July 18, 2024

Nginx will typically serve pubnix.com/~foo but when you load the page, the software assumes pubnix.com/static/ holds the CSS but instead, pubnix.com/~foo/static holds the static files (so you get 404'd styles). Also some of the URLs e.g. registration assume pubnix.com/... without the sub-path which breaks ofc.

from mycorrhiza.

bouncepaw avatar bouncepaw commented on July 18, 2024

Nginx will typically serve pubnix.com/~foo but when you load the page, the software assumes pubnix.com/static/ holds the CSS but instead, pubnix.com/~foo/static holds the static files (so you get 404'd styles). Also some of the URLs e.g. registration assume pubnix.com/... without the sub-path which breaks ofc.

You seem to use filesystem paths and URLs interchangeably. They are different. I don't quite understand what do you mean. Can you please provide a complete list of actions, what did you expect, and what happened instead.

from mycorrhiza.

bouncepaw avatar bouncepaw commented on July 18, 2024

Note for a future implementer. The <base> tag can be used:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base

from mycorrhiza.

decentral1se avatar decentral1se commented on July 18, 2024

You seem to use filesystem paths and URLs interchangeably.

I only used URLs.

from mycorrhiza.

shivrm avatar shivrm commented on July 18, 2024

Note for a future implementer. The <base> tag can be used:

I tried adding the <base> tag, but it doesn't work. Root-relative links (such as /hypha/Name) are still relative to the root of the path specified in <base>.

Example: (https://jsbin.com/maciqavoja)

<head>
    <base href="https://github.com/shivrm/">
</head>
<a href="/mycorrhiza">/mycorrhiza</a> links to https://github.com/mycorrhiza

from mycorrhiza.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.