If I create a alias with the path, for example "themes", when i go in this path (www.example.com/themes) I receive a forbidden access because the path is the same of a folder. Is possible have a result likes themes-0

Comments

greggles’s picture

Title: Alias if has the same "standard" name » Detect files on file system when preventing name collisions
Priority: Minor » Normal

I'm not sure if/how we can do this, but it seems somewhat worthwhile.

dave reid’s picture

Status: Active » Closed (duplicate)

Pathauto already prevents its own aliases from overwriting existing views paths. This is a duplicate of the core issue with path.module: #121362: Require dedicated permission(s) to set aliases pointing to existing or reserved paths

dave reid’s picture

Component: Bulk generation » Code
Assigned: Unassigned » dave reid
Category: feature » bug
Priority: Normal » Major
Status: Closed (duplicate) » Active

GAK, now I see that Pathauto allows aliases like that to be created. We need to check is_file() || is_dir().

dave reid’s picture

Status: Active » Needs review
StatusFileSize
new1.83 KB
dave reid’s picture

Version: 7.x-1.x-dev » 6.x-2.x-dev
Status: Needs review » Patch (to be ported)
dave reid’s picture

Version: 6.x-2.x-dev » 6.x-1.x-dev
dave reid’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.