novafacile / novagallery

novaGallery - a beautiful and and ease to use php image gallery for your photos - flat file - no database required - modern responsive design
https://novagallery.org
GNU Affero General Public License v3.0
74 stars 11 forks source link

"back" button not working properly #29

Closed Benman2785 closed 1 year ago

Benman2785 commented 1 year ago

Hi,

i use Version 1.1.1

if i have an album with several folders i get and click i get "https://album/family" instead of "https://pics.domain.tld/album/family"

in my site.php i have to use "url": "/", - otherwise i get error

Benman2785 commented 1 year ago

fixed it: line 9 in album.php of theme <a href="<?php echo Site::url().'/'.Page::data('parentPage'); ?>" class="text-muted link-back">&laquo; <?php L::p('Back'); ?></a> changed to <a href="<?php echo Site::url().'../'.Page::data('parentPage'); ?>" class="text-muted link-back">&laquo; <?php L::p('Back'); ?></a>

so all that was missing for nginx were two dots

david-novafacile commented 1 year ago

That's strange. Wich PHP version do you use?

Benman2785 commented 1 year ago

Ubuntu 18.04.6 LTS with latest low-latency-kernel nginx Version 1.21.0 PHP Version 7.4.33

small KVM root with 2 dCPU (AMD Epyc) and 3GB RAM

david-novafacile commented 1 year ago

If your fix works for you, than it's fine. Normally this fix shouldn't be required. Maybe it's a combination of a problem with nginx.

The next major release will be quite different for reading configuration and variables. Maybe it's better than.

Next major version v2 will be public beta in the beginning of 2023.