customize relative paths

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
columbo
Advanced
Posts: 124
Joined: 09 Oct 2019, 09:42

customize relative paths

Post by columbo » 19 Dec 2019, 19:04

Hi,

I'm using ameos in a subdirectory and have set "document_root/abc/public" as alias in my apache.conf

Statpage is working fine so far, but all relative links are missing my subfolder "/abc"
How can I add a path-prefix (like "/abc") to the generated relative paths?

generated path: /shop/product1
expected path: /abc/shop/product1

When using absolute paths ('absoluteUri' => true) it works fine.
Do I have to switch on absoluteUri for all paths?

Thank you

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: customize relative paths

Post by aimeos » 20 Dec 2019, 14:38

Laravel doesn't support installation in subdirectories well:
https://github.com/aimeos/aimeos-larave ... -506869277

If "absolutUri = true" works, it might be OK if you take additional measures to protect all files and directories below the ./public directory.

Once again: Installation in a subdirectory might create extreme security holes if e.g. your .env file is publically readable!
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply