cancel
Showing results for 
Search instead for 
Did you mean: 

Product URLs are screwed up

Product URLs are screwed up

I have a plugin that export product urls to my sales channels. I recently added a lot of products.

 

Now what is happening is the "product_url" value is including my "admin" path which makes no sense.

 

For example a product on my site has this URL

This is the product URL
https://mydomain.com/catalog/product/view/id/150709/s/270952/

 

But the "product_url" attribute for that product when exported is
https://mydomain.com/admin/catalog/product/view/id/150709/s/270952/key/a637843dbeca2e6e7e7ed46a55e0f...

 

You can see that it's injecting "mydomain.com/admin" instead of "mydomain.com" .... also it ads that key at the end.

 

I've never seen this before and have been researching URL rewrites and it seems like a wonky subject.

 

I have flushed,cleaned cache, reindexed, removed generation, page_cache, cache files ... nothing seems to change it so I'm officially stumped

 

1 REPLY 1

Re: Product URLs are screwed up

You need to use below GitHub extension for your URL issue,

https://github.com/elgentos/regenerate-catalog-urls

 

Using above extension you can regenerate URL for your store.

 

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial