getgrav / getgrav/grav-theme-learn2

Wrong link "Edit this page" when using Multisite

Open
#80 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
SCSS
Stars
79
Forks
40
PR merge metrics
No merged PRs in 30d

Description

When we are using the [multisite setup](https://learn.getgrav.org/advanced/multisite-setup) of Grav, especially the one with subdirectories, the link to the Git resource for editing the page is wrong.

We expect to have:
`http://mygit/myproject/blob/master/pages/01.basic/01.sometopic//docs.md`
But we have instead:
`http://mygit/myproject/blob/master/sites/mysite/pages/01.basic/01.sometopic//docs.md`

Where `http://mygit/myproject/` is the root of the git project (on github, gitlab of any other system), the page is `/basic/sometopic` and the site in multisite setup is in the `mysite` directory. It means the doc is accessible via `http://mydoc/mysite/basic/sometopic`.

The `sites/mysite` is in the way. **Learn2** just imagine that the root folder of the doc is directly in `pages` folder when it is in `pages/sites/mysite`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.