Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong permalink in rel=alternate #48

Open
depasco opened this issue Feb 7, 2018 · 1 comment
Open

wrong permalink in rel=alternate #48

depasco opened this issue Feb 7, 2018 · 1 comment

Comments

@depasco
Copy link

depasco commented Feb 7, 2018

Hi support team,

my permalinks look like this:
/%postname%/ with a closing trailing slash at the end.
Your plugin does not add the slash at the end of the link rel="amphtml" href= url
If the url of the page is https://www.domain.com/newpage/
your plugin inserts link rel="amphtml" href="https://www.domain.com/amp/newpage" which leads to a 404 error.
I have a 301 force redirect for urls without trailing slash at the end in my htaccess but it's ugly and leads to 301 redirect if any bot crawls the site.
Can you please fix this ? Many thanks...

Best Regards,
Markus

@tarek-helish
Copy link

hello
i have sam problem on my site you can check that https://www.masa-jaddah.com but i fix that error
you have to go to this file on better-amp( better-amp/includes/functions/theme-functions.php )
and open it and go to line number 1100 you will see that

replace with that

and save the file the problem gone
i wish i help you
have a nice day

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

No branches or pull requests

3 participants
@depasco @tarek-helish and others