scragg0x / realms-wiki

Git based wiki inspired by Gollum
http://realms.io
GNU General Public License v2.0
833 stars 91 forks source link

Fix relative paths on WSGI. #207

Closed larsimmisch closed 7 years ago

larsimmisch commented 7 years ago

This is a thorny issue and I do not fully understand how this is supposed to work on the wsgi/flask level.

What I do know is this: on WSGI, we need to know our RELATIVE_PATH for edit/delete (which are form submissions), but our blueprints need to be relative to /, because WSGI does the translation for us.

This patch should at least have minimal impact.

larsimmisch commented 7 years ago

Thanks!