Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[6.x] Remove vendor from namespace if it exists#14100

Open
indykoning wants to merge 1 commit intostatamic:6.xfrom
indykoning:patch-5
Open

[6.x] Remove vendor from namespace if it exists#14100
indykoning wants to merge 1 commit intostatamic:6.xfrom
indykoning:patch-5

Conversation

@indykoning
Copy link
Contributor

I've run into this issue when using https://github.com/statamic-rad-pack/runway
Th blueprint edit page does have the correct url and handles set.
Once the save button is used a 404 gets thrown. Why?

Because the url is like follows /cp/fields/blueprints/vendor.runway/category
Meaning it will look for a blueprint with the handle vendor.runway::category

Bringing it to code, calling Blueprint::find('runway::category')->namespace() returns vendor.runway
(the full path to the file is /resources/blueprints/vendor/runway/category.yaml)

I'm not sure wether this should be moved to runway, but i did not seem to see a way for runway to add a path to remove to resolve the namespace.

@jasonvarga
Copy link
Member

jasonvarga commented Mar 2, 2026

I'm hesitant to just chop off parts of a string. Seems weird that the word vendor made it into the url in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants