Questions tagged [url]
Denotes question about URL issues and custom URLs.
936
questions
0
votes
1answer
11 views
Suppose I reach to this page customer/account/login/, after I click on “Sign In” button and i found referer feature not working :(
How to echo or print the referer url(history page) from where I reached to that login page.
I have to implement something that after login user should not reach to dashboard instead he should re-...
0
votes
1answer
16 views
Build Customer View URL on Controller
How can I programmatically build this url: http://127.0.0.1/magento2/sales/order/view/order_id/61/?
Im in a custom controller with the current Order object.
0
votes
0answers
26 views
Url Not working - Category Pages not Loading
I ran the following commands to enable a module on magento 2.4.1:
bin/magento module:enable testapp
bin/magento setup:upgrade
The command executed successfully, but this caused the images on my ...
0
votes
2answers
37 views
Magento 2 Add category path to product page
How do I add category to breadcrumbs on products page so it says Home -> Category -> Lenovo Thinkpad
From the Admin panel I've set
Use Categories Path for Product URLs -> YES
But it only ...
1
vote
0answers
63 views
Magento 2 Unit Testing with Helper dependency
I have a Helper class and a Model class, which looks like
<?php
# File: app/code/MagePsycho/Catalog/Helper/Data.php
namespace MagePsycho\Catalog\Helper;
use Magento\Framework\App\Helper\...
0
votes
2answers
25 views
How to redirect domain.com to www.domain.com?
I have this code in .htaccess
Options +SymLinksIfOwnerMatch
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
But it still appears ...
0
votes
1answer
18 views
Magento 2 force secure URL via XML?
In M1 it was possible to add some lines to config.xml to force secure urls for certain pages ...
<?xml version="1.0"?>
<config>
...
<frontend>
...
&...
0
votes
0answers
7 views
Magento 1.7 - SEO URLs - Rewrite URL in Sitemap for Products
we have Magento 1.7 in use.
We would like to read our SEO URL for the products from the database. We have found that the attributes for "url_key" do not match the URL from the sitemap of ...
0
votes
0answers
16 views
Redirect url with key formula in Magento 2
I'm trying to do this in Magento 2:
I have my url : https://www.example.com/page/
I'd like to add after /page a key value. Example : /page/key1, /page/key2 ...
Then I get the key value with $this->...
0
votes
1answer
27 views
CMS Page Save - Url Key - “The value specified in the URL Key field would generate a URL that already exists”
I've upgraded to Magento 2.3.6 from 2.3.4 and am encountering this error anytime I try to update and save a CMS Page. It's limited just to CMS pages. Products and Categories are fine.
The error is: &...
0
votes
0answers
6 views
Remove products url from Google search one store view
I have multiple store views.
Want to remove product url only for one store view
0
votes
0answers
16 views
jQuery (server side) search and sort using Ajax
I tried to create search and sort from live URL using Ajax , i used do search function and i managed to retrieve the data from the URL .
I am showing Ajax response in select options as below code. I ...
0
votes
0answers
10 views
Magento 2.3.5 layered navigation (left sidebar) url adding category id not the name
I am configuring a Magento 2.3.5 shop.
After clicking on a subcategory name in the layered navigation the category id (?cat=) is showing in the url instead of the name. Example: www.myshop.com/shoes/?...
0
votes
1answer
23 views
Magento generates duplicate urls
I am new to Magento and I do not yet master the PHP language. (Magento ver. 1.9.4.2 I have a problem with the automatic generation of duplicate urls. I searched several forums but none of the ...
0
votes
1answer
30 views
Magento2 create custom dynamic routes
Magento2 how can I create custom dynamically routes/URL ?
I need URLs as below
For e.g. https://example/find-a-store/nsw/tuggerah/
Here in URL, nsw & tuggerah will dynamic generate
I used below ...
0
votes
1answer
17 views
Magento 2 - Current url not work well in copyright section
I need to get the current url in the copyright.phtml section.
This is my code:
echo $this->getUrl('*/*/*', ['_current' => true, '_use_rewrite' => true]);
After clearing the cache it seems to ...
0
votes
0answers
23 views
Frontend Links are not working properly - M2
I have issue in website frontend links, When i am opening any URL, that is considering as base url. For example
My base url is www.xyz.com and categories url are green and red, both are parent ...
1
vote
2answers
48 views
Retrieve product url with category in the graphQL
I've enabled at backoffice the usage of the category inside the product url by setting this option:
When I access the magento frontend, I can now access the product with the url <category>/<...
0
votes
1answer
70 views
Magento 2 - remove .html from URL by using .htaccess
We have some wrong URLs in our store ending with .html. If the user opens such a URL, then the .html should get removed, otherwise the site cant get found.
So I added this rule to my .htaccess file in ...
0
votes
0answers
28 views
Changing Url magento 2
I want to change www.m2.com/authors/view/index/id/1 to www.m2.com/authors/author_name.html
how can i achieve this
help
0
votes
0answers
14 views
Magento 2 not able to read the query parameters passed to category page on live server
I am trying to read the GTM parameters passed on page before page is redirected to external resource for authentication. I can read this query parameters on local server but on production server it ...
0
votes
1answer
23 views
404 Page Categories Not Found
We have problems with page 404 page and our URLs have two formats without knowing why.
See the example below.
www.mywebsite.com/catalog/category/view/s/herboristerie/id/419/ (Okay)
www.mywebsite.com/...
0
votes
2answers
45 views
how to get image from a module
in my case there is a picture inside my module and I want to get that image inside an HTML file (it's an html file for email header), but when I use Magento syntax it doesn't appear, I have got the ...
0
votes
1answer
15 views
Is changing to canonical urls a bad idea if you have an established website with thousands of backlinks?
I have a magento website with thousands of backlinks. I just realized that the categorical structure is negatively affecting my seo. Will switching to canonical break many backlinks? Is it a bad idea? ...
0
votes
2answers
73 views
Magento 2: How to generate backend url with key from frontend?
I need to generate backend url with key like this:
https://m2.com/admin/test/test/index/key/123XXXX
using URL builder
$this->getUrl('test/test/index')
how can i achieve this from the frontend ...
0
votes
0answers
65 views
How to change Filter Url in Magento 2
How to change the URL of the Magento 2 store when Filter is applied. When I apply any Filter the URL looks like https://jpm2.mydemoweblink.com/watches/alpina?jpf_gender=6780 where I want to change the ...
1
vote
2answers
83 views
Magento 2 - add prefix before category and products urls
I want to add prefix in category and product urls of Magneto 2.3.4.
I was able to add prefix in product urls but not working on category urls.
Please guide.
0
votes
3answers
191 views
Changed Base_Url and Now I am getting 404
I just migrated a Magento2 site from a cloud server to my localhost to do some developer work on. I have everything I need installed and ready to go. I am just trying to redirect the Base-URls. I ...
0
votes
1answer
70 views
Re-direct Category Menu item to different URL
I want to redirect my Menu sub item to a different URL how can I do that?
Like Blog Menu Item to
Dropbox.com
I want the Blog menu to be redirected to : a seperate URL to new website for example: www....
0
votes
1answer
129 views
Multiple URLs getting created for single product
I am an SEO executive and pretty new to Magento. I have got a project in which there are multiple URLs for a single product and all URLs have been indexed on Google. Here is an example of URL ...
0
votes
1answer
26 views
Remove .html from category in product URL?
For some reason, I am getting .html in my product URL, like so: https://example.com/mycategory.html/myproduct.html. I want to remove .html from mycategory when I am on a product page.
Is there a ...
1
vote
2answers
31 views
Product image by ftp url
I need to pass an url of an ftp to be the product image by the magento api, can I do this?
Something like
{
"attribute_code": "image",
"value": &...
0
votes
0answers
28 views
Magento2: Could not save product “53430” with position 0 to category 1593
Every time during try update category I get issue:
Could not save product "53430" with position 0 to category 1593
When edit product and try save I see:
The value specified in the URL Key ...
1
vote
1answer
48 views
url magento 2 to get manufacturer value on all website
why url like this do not work when we try to access to all product of a specific attribute value. let's take manufacturer as an example::https://website.com//?manufacturer=1437
0
votes
0answers
13 views
URL Not friendly Magento 2
Name product: Box đựng HDD 2.5 di động WD USB 3.0 .
but url auto of magento 2: /box-d-ng-hdd-2-5-di-d-ng-wd-usb-3-0.html .
i want /box-dung-hdd-2-5-di-dong-wd-usb-3-0.html
This is lang vietnamese
...
1
vote
2answers
26 views
How can I get product image from REST API as HTTPS
I use V1/getproductimage/<sku> and get product's image url from API. It returns
[
{
"product_image_url": "http://<host>/pub/media/catalog/product/cache/...
1
vote
0answers
20 views
Magento 1.9 Localized product url keys
In Magento 1.9 we want to use localized product URL keys for different storeviews. The url key is a global variable and can't be changed by storeview.
Example:
English: www.example.com/en/addidas-...
1
vote
1answer
49 views
How to translate a url automatically in Magento 2 community?
I have got two websites (one in french, the other one in spanish). I have set up two websites and not view stores because selling prices are different.
The main website is the french one. I have ...
0
votes
0answers
57 views
Redirect .html to none html on URL
I tried to remove .html from my categories from admin panel and it works. now I have example.com/test , but example.com/test.html is 404 now. how can I redirect all .html urls to non html one?
should ...
3
votes
0answers
46 views
Remove Parameter From Product url Magento 2
I am trying to remove parameter(#857=) from the product url:
https://tpm2.redsignal.net/reina-modal-trv-steel-radiator-towel-rail-valve-anthracite.html#857=
These parameter are of configuration ...
0
votes
1answer
33 views
Generate Admin URL from frontend Magento 2
I have to generate secure Admin URL in the frontend, for example in Magento 1.9 i can achieve it like this:
$adminUrl = Mage::getUrl('adminhtml/sales_order/view', array( 'order_id' => $order->...
1
vote
0answers
94 views
How to call function in my controller in browser url which shows 'hello world' in magento 2.3.5
I am here trying to make a hello world message when trying to access my controller function using browser url
demomagento.com/app/code/Icosmoz/Unicenta/Controller/Adminhtml/Home/index.php
This is the ...
0
votes
0answers
17 views
URL rewrites duplicate problem
I get an error like:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry
'hracky/elektricke/bburago-range-rover-sport-black-d5848030-evoqu' for
key '...
0
votes
0answers
21 views
static blocks are not displaying in frontend
I moved the main server to localhost with subdomain , all the pages are working but static blocks are not displaying in frontend, where i have to change to display the static blocks in frontend
0
votes
0answers
12 views
Pass URL Parameter to Order
In my Magento 2 store, I want to be able to pass a custom URL parameter source to my order, so that when the order is complete, we know what value (if any) was in the query string for the source key.
...
1
vote
0answers
26 views
create dynamic pages
I have a website with about 200 accessories for a certain type some cars, the accessories are set up as normal products within Magento. However, the cars are stored in a new table within our Magento 2 ...
0
votes
0answers
6 views
Modify “added to cart” notification to include HTML link? - coming from 3rd party extension via PHP (controller), not standard mage notification
I have an extension installed that add's a "quote" cart to my Magento 2.3.4 site.
It looks similar to how the default cart works, but it allows customers to add products to a quote-cart and submit ...
0
votes
0answers
9 views
Domain rewrite for all the product URL which recently migrated from another platform. The main domain should be same
Am running a store in Magento2 which I recently migrated from another platform. So all my existing URL of products changed but keeping the main domain as same.
www.domain.com/products/item_name ...
0
votes
0answers
19 views
How to remove Specific Category name from URL when product is load
Can it possible to Remove Specific Category from URL when Product is Load.
For Example, if Category Name Like this
Product Subject Presenters
1) when we click in Product Category Load all ...
0
votes
0answers
12 views
how to show complete product url key in magento 2
Products in subcategory URL
Category 1->Sub Category 1-> Product
if I navigate the product from (root->sub) sub-category-1 the URL of the product is
/category-1/sub-category-1/product-urlkey.html
...