-
Notifications
You must be signed in to change notification settings - Fork 383
Closed
Labels
BugSomething isn't workingSomething isn't workingChangeloggedWhether the issue/PR has been added to release notes.Whether the issue/PR has been added to release notes.
Milestone
Description
Bug Description
This plugin adds a suffix /amp to my custom links to remote websites in my footer menu (wp_nav_menu).
My blog is under a subpath (/blog) so I was able to manually remove this suffix (and keep it only for my blog links) with :
if(strstr($parsed_url['path'], 'blog')){
$parsed_url['path'] .= user_trailingslashit( amp_get_slug(), 'amp' );
}
in amp/src/PairedUrl.php.
Expected Behaviour
The suffix must no be added to custom links in wp menus.
Screenshots
No response
PHP Version
7.3
Plugin Version
latest
AMP plugin template mode
Transitional
WordPress Version
No response
Site Health
No response
Gutenberg Version
No response
OS(s) Affected
No response
Browser(s) Affected
No response
Device(s) Affected
No response
Acceptance Criteria
No response
Implementation Brief
No response
QA Testing Instructions
No response
Demo
No response
Changelog Entry
No response
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't workingChangeloggedWhether the issue/PR has been added to release notes.Whether the issue/PR has been added to release notes.