trilbymedia / grav-plugin-git-sync

Collaboratively Synchronize your Grav `user` folder hosted on GitHub, BitBucket or GitLab
Apache License 2.0
240 stars 58 forks source link

git "edit this page" button presents wrong url for gitea #150

Closed valahna closed 4 years ago

valahna commented 4 years ago

When using a git server besides github (did not try to compare with gitlab), the auto-generated button link is generating an incorrect url. This is what it generates:

https://<git_server>/<user>/<reponame>/blob/master/pages/01.basics/chapter.md

But for gitea (and likely gogs as well, could be wrong) it should be:

https://<git_server>/<user>/<reponame>/src/branch/master/pages/01.basics/chapter.md

Is there a setting in a config file somewhere I can change this? I looked in /user but was unable to find an appropriate setting.

paulhibbitts commented 4 years ago

Hi @valahna , what theme or skeleton are you seeing this in? It is likely an issue of the theme vs. this plugin.

Thanks, Paul

valahna commented 4 years ago

hi @paulhibbitts you are most likely correct. I am using grav-skeleton-learn2-with-git-sync

valahna commented 4 years ago

I apologize @paulhibbitts , I found the settings in the theme to update the URL, I must have missed it the first 10 tens I looked -.-;

It works as expected, this was a pebcak issue :)

paulhibbitts commented 4 years ago

🙂That's great to hear you got it going @valahna , hope you find the theme useful!