magento / pwa-studio

šŸ› Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
https://developer.adobe.com/commerce/pwa-studio/
Open Software License 3.0
1.07k stars 684 forks source link

Venia Store URLs 301 redirect problem of trailing "/" and uppercase letters #4347

Closed secaliskan closed 3 weeks ago

secaliskan commented 1 month ago

Describe the bug

Normally Magento2 with Luma; at backend manage the redirects of certain SEO needs, for example:

Those above 3 default Magento behaviour is not working on Venia storefront; https://venia.magento.com

To reproduce

Steps to reproduce the behavior:

  1. Go to https://venia.magento.com/venia-bottoms.html?page=1
  2. at Browser manually change the URL https://venia.magento.com/venia-bottoms.html/?page=1 (added "/" end of url)
  3. Or at Browser manually change the URL https://venia.magento.com/venia-**BO**ttoms.html?page=1 (added "/" end of url)

Expected behavior

Expected behaviour Venia should replace the url with original URL like this: https://venia.magento.com/venia-bottoms.html?page=1

Also at console we need to see 301 redirect at headers.

or show 404 page since there is no such URL storefront PAGE

Above are the expected behavior for Google to understand our storefront Page structure and URLs

But Venia is neither making 301 redirect and show the page URL like we have changed nor show the 404 page and lauch the UNCORRECT URLs like below and show the CORRECT page content...

https://venia.magento.com/venia-bottoms.html**/**?page=1 OR https://venia.magento.com/venia-**BO**ttoms.html?page=1

image image

So, Google indexes two or more pages for each store page; what is not correct. It is a big fault for SEO...

Venia is not using backend URL resolvers OK. BUT also does not have built in functionality for 301 redirections.

Same case Admin/Marketing/URL Rewrites. Now at Venia Storefront 301 URL redirects working but showing 200 at headers but needs to show 301 at headers

I didn't find any solution for those 301 redirect cases for Venia...

Please complete the following device information:

Please let us know what packages this bug is in regards to:

m2-assistant[bot] commented 1 month ago

Hi @secaliskan. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information. Add a comment to assign the issue: @magento I am working on this


Join Magento Community Engineering Slack and ask your questions in #github channel.

glo82145 commented 1 month ago

https://github.com/adobe export issue to JIRA project PWA as Bug

glo82145 commented 1 month ago

@adobe export issue to JIRA project PWA as Bug

github-jira-sync-bot commented 1 month ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/PWA-3376 is successfully created for this GitHub issue.