Skip to content

Update 5.0.4 - Breaks the plugin when a custom CPtrigger is set. #51

@cwechtler

Description

@cwechtler

When you added this update

  • 5.0.4 - Adding in ability to customize URL segment of the user manual documentation section
    The plugin immediately breaks if you have a custom cptrigger set for your site.

It looks like in the UserManual.php line 115 you hard code the CP Trigger url to be $item['url'] = '/admin/' . $this->getSettings()->urlSegment;
This immediately throws a 404 page not found when trying to access it if the CP Trigger is not 'admin'.

Please update this to dynamically collect the cptrigger.
I recommend trying $item['url'] = UrlHelper::cpUrl($this->getSettings()->urlSegment); instead.

I have downgraded to 5.0.3 until this gets resolved.

Thanks you

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions