Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
0
votes
1answer
39 views

I want to use php scandir in a phtml

I want to use this in a phtml: <?php $kataloge_dir = '../media/downloads/dlbereich/kataloge/'; $kataloge = array_diff(scandir($kataloge_dir), array('..', '.')); $kataloge_thumb_dir = '../...
0
votes
1answer
173 views

Passing the Product id and form key but not adding to cart in magento2

passing product id and form key through url but product not added to cart in magento2. http://127.0.0.1/magento2.3/checkout/cart/add/uenc/...
1
vote
1answer
182 views

Magento 1.9 get current url

I want to get Current URL in Magento 1, using observer function, that observer triggered on the AJAX controller action. In the observer function, I tried like :- $currentUrl = Mage::helper('core/url'...
1
vote
1answer
157 views

Magento2 - Is it possible to get specific store url in cms block?

I am trying to get store URL or base URL for a specific store in cms block. I have tried {{store _store="1"}} Also, {{config path="web/secure/base_url"}} I wanted to know if this is going to work ...
2
votes
1answer
27 views

how to create more then one submit_url in ui_component Magento 2

I need to submit data from ui_component to another class so I created two buttons and on one I set the submit_url and works perfectly but in other class I cannot get the data to perform some ...
0
votes
0answers
120 views

Cart and checkout URL Change in magento 2

Change url of final Checkout page from https://example.in/onepage to https://example.in/checkout Change url of thank you page from https://example.in/checkout/onepage/success/ to https://example.in/...
1
vote
0answers
14 views

SEO category path [closed]

Which is the best one and why? www.example.com/women/pants (used by ASOS) www.example.com/women-pants (used by Zalando)
0
votes
0answers
173 views

Magento 2 Wysiwyg editor adding admin/cms/wysiwyg/directive links to store url

I am adding {{store url="about-us"}} to CMS block page but it ends like below http://192.168.1.72/pneumatic-plus-categoryprototype/admin/cms/wysiwyg/directive/___directive/...
0
votes
1answer
35 views

Magento2 : How to modify the store view url?

How to change the magento store view url? For example change "?___store=en" to "?lang=en".
0
votes
0answers
78 views

Magento2 - Get store url for specific store in static cms block

I have multistore website in Magento2 Now how to get the above store-specific urls in static block by using the {{store url=""}} Right Now the above url fetches the current store url but i want ...
0
votes
0answers
18 views

How to add a product to cart via URL on a website that uses magento?

I wanto to know how to create a "add to cart link" on a website that uses magento.
1
vote
1answer
23 views

Removing (hiding) Magento system URLs

I am pretty sure there has to be a simple way to solve, but I just cannot find it. So, by default, there are 2 types of product rules at my store: mystore.com/catalog/product/view/id/177 mystore.com/...
0
votes
3answers
117 views

Get browser URL magento 2

I want to get URL which is passed in the address bar but problem is that in my .htaccess there is a code for the rewrite I don't know for that reason or something else I got other URL which is not ...
0
votes
1answer
242 views

Magento 1.9 - Mage->app()->getRequest()->getParam() not working

I am fetching the URL params as below. Mage::app()->getRequest()->getParam('test'); Debugging with echo before the above statement, it works fine. But placing echo after this statement return ...
0
votes
1answer
60 views

How to redirect to shop after logged in user in Magento 2

public function execute() { if ($this->session->isLoggedIn() || !$this->formKeyValidator->validate($this->getRequest())) { /** @var \Magento\Framework\Controller\Result\...
1
vote
0answers
17 views

How many ways are there to create a controller and what are they?

I have been developing with Magento 1.9 for the last two weeks. I have found several problems to develop each project (probably because my first project with magento had a high level...). I come ...
1
vote
1answer
304 views

Magento 2.3.0 WYSIWYG editor's image not loading on frontend

we have created some category's custom attribute of WYSIWYG editor type. While we are adding image in these custom attribute's editor, they are showing/loading fine in admin section but while we are ...
1
vote
1answer
70 views

how fix invalid url in magento

Invalid base url type Trace: #0 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Store.php(620): Mage::exception('Mage_Core', 'Invalid base ur...') #1 C:\xampp\htdocs\magento\app\Mage.php(382): ...
0
votes
1answer
25 views

Product translated URL for iframe purposes

I am working on a 1.9.x version of Magento, I've just translated the products of my catalog for a PT-BR language and I was needing the products URLs in order to insert them on a iframe of a specific ...
0
votes
1answer
46 views

What is the ajax url if

help, what will be the ajax url if method is in: /app/code/core/Mage/Adminhtml/controllers/CmsBlockController.php ?
2
votes
2answers
218 views

In Magento 2,I can't Open Categories With New URL

If I add new URL then it's showing 404 error when it open frontend side.If it open with old URL it's working. For Ex. I have added new URL "business-card-gift-card-holders123" for category.It's ...
0
votes
0answers
47 views

How to remove /magento2/ parameter from URL?

Current URL : http://localhost/magento2/rest/V1/products/options/types I want to use without /magento2/ i.e. http://localhost/rest/V1/products/options/types I am using XAMPP server with ...
1
vote
1answer
162 views

Products just redirect to search results page

All of my products are now redirecting to catalog search. i.e. /bonfire-firma-3-in-1-stretch-mens-snowboard-jacket-2019.html goes to /catalogsearch/result/?q=bonfire-firma-3-in-1-stretch-mens-...
0
votes
1answer
407 views

Magento 2 Duplicate Product URLs Problem

When creating products in Magento 1 the url was created from the product name, and if there were duplicate product names M1 would add a numerical suffix to the end of the URL. Since it seems this is ...
1
vote
0answers
70 views

Remove Auto-generated URL Rewrites

I've been having this issue with auto-generated URLs. The catalog/* URLs keep auto-generating the red box are the URLs that auto-generate, the green box are the URLs that I want. How do I stop the red ...
0
votes
2answers
304 views

Change Default Web URL

I want to change the url of the index page for magento 2 store. I changed the Default Web URL to "custom", but when I go to site.com/custom it gives me a 404 and the index page is still site.com/cms
1
vote
2answers
178 views

What does this pattern match when filtering strings for URLs

What exactly is this line for preg_replace('#[^0-9a-z]+#i', '-', parent::filter($string)) in the following method in \vendor\magento\framework\Filter\TranslitUrl.php: public function filter($string)...
0
votes
0answers
134 views

Magento 2 product url key saving issue

I am trying to save product url key.When i open product admin product url key is empty for some products so i am trying to place url and saving product product is saving but url key field not changing ...
1
vote
0answers
21 views

Magento 2 - “url_key” Product Attribute, force as required and unique

Is it good practice to force the "url_key" product attribute to be both "required" and "unique" by default? update eav_attribute set is_required=1,is_unique=1 where attribute_code = "url_key"; As ...
0
votes
0answers
21 views

Which url is better to use

We have a : Checkout Page Select address Order summary three different pages. Which way of representing the urls is better.But using a slash is sub directory. Can we have the url like this : ...
0
votes
1answer
75 views

Get second last url in Magento 1.9

How can we get the second last url in Magento 1.9? I currently use this: <?php echo Mage::getSingleton('core/session')->getLastUrl();?> To get the last URL. But I want to get the second ...
1
vote
2answers
376 views

Magento 2: Category URL for frontend

I have created a root category with name colors in Magento 2. I am trying to access this category by URL http://domain.com/category/colors.html in front end. But its not working for me. What will the ...
0
votes
0answers
45 views

Need to remove Currency name(ie \gdp or \usd) from url in magento

I am new to Magento 1.9 I m trying to remove currency name from url and at the same time setting canonical url
0
votes
0answers
33 views

Is it possible to generate unique URLs when using Magento\Catalog\Model\Product?

I am using Magento\Catalog\Model\Product to save products in a loop. When i have multiple products with the same name $product->setName($name) i get the following error: Fatal error: Uncaught ...
1
vote
1answer
73 views

How to get current page url in static blocks

I want to get my current page URL in one of my static blocks How do I get that?
0
votes
1answer
144 views

Google still crawls url while i disallow from robots

I will go straight to the point. Recently I did several fixes in my robots.txt file, and I've added several disallows like these: Disallow: /review/ Disallow: /catalog/product/view/ the problem is ...
0
votes
1answer
32 views

Magento 2 : Update url to domain

I'm using an Instance of Ubuntu 16.04 lts on Google to run a store, but I'd like to point to my domain. Wich line on Apache2 should I update?
0
votes
1answer
20 views

Magento Multisite links go to wrong domain

I have created a new website within my Magento (1.9.3.10) I've created a home page and got the menu visible. When you click on a Menu item, it links to my other website domain, showing a 404. I have ...
0
votes
1answer
48 views

Magento 1.9 - Layered Navigation Links Ending with ?cat= or ?brand=

I am working on URL issues for a customer of mine and they have subcategory links ending in ?cat= and ?brand=. If I'm not mistaken, this is bad for SEO and not ideal for customer user experience. I ...
0
votes
0answers
44 views

Force display currency with URL (Magento 1)

We are having issues with our international Google shopping campaigns where we our feeds are serving the prices converted to the currency for that country, ie Euros, but Google are rejecting the data ...
0
votes
1answer
16 views

Should I Index every URL to google?

I'm running a shoe store, so I have lots of attributes creating a lot of different indexable URLS's (shoe sizes, colours etc) - Should I submit all of these url's? Will it bring an SEO benefit or not
1
vote
0answers
567 views

Magento 2 Rest API get all products with certain attribute_set_id

I need to elaborate de URL that will bring all products with certain attribute_set_id through Magento 2 Rest api, and then change though the api the attribute_set_id of all those items. My problem ...
0
votes
2answers
46 views

Two Url's for one product

i have one product with two different url's https://dutchmanaxles.com/products/axle-housing-rearend-hardware/rcv-934-cv-joint-lightened.html and https://dutchmanaxles.com/rcv-934-cv-joint-lightened....
0
votes
1answer
35 views

How to add Product id after cart url on cart page in Magento 1.9

I want to add some product id after cart url on cart page the product that is added in the cart. Because i want to target that products by using omnisend extension that target by part of url. To show ...
0
votes
0answers
200 views

Remove ?___store &___from_store=default from the code url of magento 2 in multistore

'Add Shop Code to URLs' to Yes in System -> Configuration -> Web -> URL options. But show ?___store &___from_store=default. I used magento 2.25. Thanks for help.
0
votes
1answer
294 views

How to get url parameter in model

How to get url parameter : at this file app/code/Vendor/Module/Model/ResourceModel/Module/Grid/Collection.php My Url is like this http://192.168.2.215/mtheme/admin/vendor_module/index/details/id/1/ ...
1
vote
1answer
46 views

Image not responsive on home page.

I've added an image to my home page and when I preview the home page from CMS pages in the admin the image is responsive. When I click on my logo the page is then fully responsive all except the ...
0
votes
1answer
26 views

Magento 1.9: How to delete a wrong URL pointing to a product review on a different website (same server)?

I am running two independent websites on a Magento 1.9.3.9 installation. Today I discovered when searching for a product which is sold in one Magento website, that the Google search result returns a ...
0
votes
1answer
21 views

Core URL re-write table - delete URL entries for deleted products

We are on Magento Version 1.9.3.7 and have been using Magento for a few years now. When we moved our site to the live site from the development site, we deleted all the development products but looks ...
0
votes
1answer
75 views

Add new string to product url

I would like to ask if it's possible to make magento ignore a string added to a product url. For example, I have a product url: http://mywebsite.lc/product-name Is it possible that when entering: ...