Skip to content

wp_nav_menu suffix in Custom links to remote websites #7329

@stouch

Description

@stouch

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

No one assigned

    Labels

    BugSomething isn't workingChangeloggedWhether the issue/PR has been added to release notes.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions