themosis / framework

The Themosis framework core.
https://framework.themosis.com/
GNU General Public License v2.0
670 stars 121 forks source link

User can directly access the theme directory #888

Open ghost opened 1 year ago

ghost commented 1 year ago

Description

A user can access the directory of the active template, where a 500 error is returned.

Example: http://domain.test/content/themes/website/index.php

How can I make it return to the main url?

Captura

Note: I use the dev-main branch as it allows me to work with laravel 8

Steps to reproduce

Enter the url of the active template

Example: http://domain.test/content/themes/website/index.php

Expected behavior

That when you enter that url directly, you are redirected to the main url