]> git.immae.eu Git - github/shaarli/Shaarli.git/commit
Explicitly define base and asset path in templates
authorArthurHoaro <arthur@hoa.ro>
Sat, 13 Jun 2020 09:22:14 +0000 (11:22 +0200)
committerArthurHoaro <arthur@hoa.ro>
Thu, 23 Jul 2020 19:19:21 +0000 (21:19 +0200)
commit818b3193ffabec57501e3bdfa997206e3c0671ef
treef5a4d3cc23ac367dde617b849561177fc20d767a
parentc22fa57a5505fe95fd01860e3d3dfbb089f869cd
Explicitly define base and asset path in templates

With the new routes, all pages are not all at the same folder level anymore
(e.g. /shaare and /shaare/123), so we can't just use './' everywhere.
The most consistent way to handle this is to prefix all path with the proper variable,
and handle the actual path in controllers.
51 files changed:
application/container/ShaarliContainer.php
application/front/ShaarliMiddleware.php
application/front/controller/visitor/ShaarliVisitorController.php
application/render/PageBuilder.php
assets/common/js/thumbnails-update.js
assets/default/js/base.js
tests/front/ShaarliMiddlewareTest.php
tests/front/controller/admin/PostBookmarkControllerTest.php
tests/front/controller/admin/SessionFilterControllerTest.php
tests/front/controller/visitor/FrontControllerMockHelper.php
tests/front/controller/visitor/ShaarliVisitorControllerTest.php [moved from tests/front/controller/visitor/ShaarliPublicControllerTest.php with 92% similarity]
tpl/default/404.html
tpl/default/addlink.html
tpl/default/changepassword.html
tpl/default/changetag.html
tpl/default/configure.html
tpl/default/daily.html
tpl/default/editlink.html
tpl/default/error.html
tpl/default/export.html
tpl/default/import.html
tpl/default/includes.html
tpl/default/install.html
tpl/default/linklist.html
tpl/default/linklist.paging.html
tpl/default/page.footer.html
tpl/default/page.header.html
tpl/default/picwall.html
tpl/default/pluginsadmin.html
tpl/default/tag.cloud.html
tpl/default/tag.list.html
tpl/default/tag.sort.html
tpl/default/thumbnails.html
tpl/default/tools.html
tpl/vintage/404.html
tpl/vintage/addlink.html
tpl/vintage/configure.html
tpl/vintage/daily.html
tpl/vintage/editlink.html
tpl/vintage/error.html
tpl/vintage/import.html
tpl/vintage/includes.html
tpl/vintage/linklist.html
tpl/vintage/linklist.paging.html
tpl/vintage/page.footer.html
tpl/vintage/page.header.html
tpl/vintage/picwall.html
tpl/vintage/pluginsadmin.html
tpl/vintage/tag.cloud.html
tpl/vintage/thumbnails.html
tpl/vintage/tools.html