Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
1
vote
3answers
596 views

Cant access images in /pub/media/customer

I have added custom attribute for profile image upload. Now when i access customer image on front end it shows 404 error and donot access images in this folder /pub/media/customer .
2
votes
1answer
916 views

URL Rewrite Rules in Admin

I apologize if this is a duplicate request someplace else, but I could not find an easy way to locate it if it exists, so here we go. I want a simple breakdown how to use the fields in the URL ...
1
vote
3answers
598 views

I change my admin URL to a custom URL and I cannot access my store admin anymore.

I change my admin URL to a custom URL and I cannot access my store admin anymore. How can I revert the change that I made?
26
votes
13answers
66k views

Remove /index.php from the Magento URL gives 404 error

I am using Magento ver. 1.7.0.2. Here it is the link to my website: http://dev.blokeundees.com.au/ I have to remove the /index.php folder from URLs so I edited the .htaccess file and backend too (...
0
votes
0answers
10 views

Magento 2 URL - Category Hierarchy

Currently working on a site with several categories and thousands of products. We want to structure the categories into parent/sub or parent/sub/sub if necessary. I've looked at url rewrites inside ...
6
votes
2answers
2k views

Get page URL from current page, different store-view

I'm using different store-views to create different language versions of a shop. Now I'm trying to add links to the other pages. However, I can not find a way to get the actual URL from the other ...
0
votes
1answer
2k views

Check page url is category page or cms

I have an page url of magento site. my question is : how can i check the page url is category page or cms page or other page? for example: page URL is : http://example.com/craft.html(category page)...
0
votes
0answers
11 views

Switch Store View on Login

I have created a custom module that observes the Login button so that when it is clicked I can switch the store view to a different store view. So far, this appears to be mostly working. However, upon ...
14
votes
4answers
10k views

Magento 2 WYSIWYG Media image directive using admin url

Why is magento 2 creating directives for media images using the admin url? for example when i add an image on category page WYSIWYG it adds <img src="{{media url="wysiwyg/image.jpg"}}" alt="" /&...
2
votes
0answers
20 views

Error: The same url in all products Magento 1.9

I've tried to show the related products under the images of products. Until here all is ok, but the URL of the products is showing always the same of the first related product How can I solve this? ...
7
votes
4answers
5k views

Magento 2: Remove Store Code in URL only for default store

We run a magento 2 multistore in 2 langauges where default store view is german. Online shop is also available in french. Store code is added to URLs like the following: www.domain.at www.domain.at/...
1
vote
3answers
3k views

Magento2 : Get Product Url for Store

I'm writing a custom indexer and I need to retrieve the product URL for different stores. $product->setStoreId(2)->getProductUrl(); still returns the URL with the admin store (backoffice) in ...
2
votes
2answers
41 views

Magento2 : How To Get Parameters from URL In Controller

http://mystagesite.com/magento232/custom/module/check/?params=<%3Fxml+version%3D"1.0"+encoding%3D"UTF-8"+standalone%3D"yes"%3F>6<%2FRESPONSECODE>Invalid+Session+Token%3A+Session+has+Timed+Out<...
0
votes
0answers
18 views

Magento 2 Multi storeviews in index.php

I have a Magento 2 site that configured to have one website with multiple store views. A store view is related to a country. The URL structure for each store view I would like to have is like this, ...
1
vote
1answer
16 views

Append extra param for my Magento 2 entire site dynamically

my requirement is like one magento site with having some query params. By starting website with www.abc.com/?id=1-2-3 like this i want carry this query param my entire site can any one how can achieve ...
0
votes
0answers
214 views

How to get or append some extra query param to url

I have added some links in top. i want get query param from url and append in to every links in top dynamically like my links are = test1, test2, test3 My mail url is = https://apcd.com When ...
0
votes
2answers
613 views

how to add product to cart by url?

I need a add to cart URL for add the product to cart by open this URL in any browser. I get the add to cart URL by this: Mage::helper('checkout/cart')->getAddUrl($simple_product) output of above ...
6
votes
4answers
5k views

Get parameters from URL Magento 2

Assume I have a URL like this, http://mystore.com/cms/sales/order/view/order_id/286/ I want to get values of the order_id which is 286, Please help with some example or snippet in Magento 2.
0
votes
2answers
1k views

Magento2 multistore - redirect url without store code to default storeView url

Not sure if this is a bug in this project, or a Magento2 bug itself The question is site is configured to use store code in urls, and that's working fine... but urls without any store code are ...
0
votes
0answers
16 views

Magento2.1 category URL structure

Want to set my category pages URL like this: https://domain.com/categories/{category name} Also is it possible to set https://domain.com/category/{category name} for main categories and https://...
0
votes
0answers
25 views

Magento 2: How to create separate url for each items added by admin?

I have created a module which is used to add some user information by admin like name, image, short_description, description etc. I displayed short_description on listing page and added a link to ...
2
votes
0answers
43 views

Magento 2.3 admin is redirecting to this URl domain/admin/admin/denid/key/**** after admin login

I anonymously added some ACL permissions in Magento 2 and saved. I know that I have configured wrongly in the process of knowing, how it works since then I am unable to access my Magento 2 admin, I am ...
-1
votes
1answer
19 views

magento 1 how can get images URL by images name

How can I get an image URL from the image name? Please provide me steps and also let me where need to keep code(folder or file location) to get URL.
0
votes
0answers
29 views

Ur Rewrite interesting problem Magento 2

I need to create URL rewrite for /vendor_module/product/test/id/666. In rewrite, I want to change id/666 to productTitle.html. But when I created it I faced an interesting problem: Magento sees "...
0
votes
1answer
15 views

CMS page with referer URL parameter

I have a customised CMS page which includes a login form, I have code that lets me grab the referrer url parameter which works fine when testing in pure php. However when putting this live I ...
0
votes
0answers
24 views

Difference between URL_TYPE_LINK and URL_TYPE_WEB

During an extended debugging session I tracked down an error with a third party module down to the use of URL_TYPE_LINK and URL_TYPE_WEB passed to the following function: Store->getBaseUrl() When ...
0
votes
1answer
2k views

Magento 2 - URLs trailing slash redirection

I configured my Magento 2 store to ends with trailing slash. This work great. But when I browse the same page without trailing slash, it redirects to a 404 error page, and not to the trailing slash ...
0
votes
2answers
21 views

How to Setup Multi Website With Visible Language Codes in Magento2?

I want to setup the below url structure in our website. http://www.domain.com/en -> website: domain / storeview: domain_en http://www.domain.com/de -> website: domain / storeview: domain_de http://...
0
votes
2answers
18 views

how to get rest URL in Magento2

I need to get a link of this kindhttp://localhost/Magento2/rest I have a code by which I get base_url: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $storeManager = $...
0
votes
0answers
49 views

Magento admin URL failure

I successfully changed my store domain name and I was able to access my admin URL. Now when I changed my admin URL and getting 404 error. I followed these steps: STORES → Configuration-Admin-ADVANCED-...
2
votes
1answer
218 views

Magento Link to Another Module

$fieldset->addField('orderinfo', 'link', array( 'label' => Mage::helper('web')->__('Order Info'), 'style' => "", 'href' => "*/".$url, 'value' => '...
0
votes
1answer
38 views

Magento 2.3.2 - Switch Website (store) without going to base URL

I'm using the following code to switch websites. app/design/frontend/[Vendor]/{Child_theme}/Magento_Store/templates/switch/languages.phtml <?php /** @var \Magento\Store\Block\Switcher $block */ ...
0
votes
1answer
13 views

How to prevent Magento to generate urls for disabled categories?

Using Magento 1.9.x I have a lot of disabled categories that I'm utilizing in my store to view specific products on Magento frontend. Magento creates Urls for those disabled categories with and ...
0
votes
1answer
30 views

Link CDN url to my product saved in magento 2

I want to Link CDN URL to my Product in magento. So basically all the Images for the product will be fetched using the Image URL Rather than saving it on Magento Website (Project) Is it possible to ...
0
votes
1answer
676 views

How can i rewrite my category url for redirect new site

How can i configure category url rewrite management. When user click category it leads to another site.
0
votes
1answer
25 views

Magento 2: Get root path in url, when the domain name doesn't match with magento folder name

I have domain name for my magento 2 site something like https://abcxyz.com/index.php, and my project folder name is something like shop.xyz.com (folder name). Now I have added an external file test....
1
vote
2answers
620 views

Add to cart url returns invalid url

My add to cart url returns this. When i click it the products doesn't get added because it's invalid. This happens in the homepage. http://localhost/mage/index.php/checkout/cart/add/uenc/...
1
vote
1answer
48 views

Magento 2 getUrl is generating a different security key

I am trying to generate the following url, in the adminhtml area: $this->url->getUrl('adminhtml/system_config/edit', ['section' => 'mysection']); // where $this->url is an instance of \...
0
votes
0answers
18 views

URL key for specified store already exists for category export via akeneo?

when i export categories via akeneo to magento 2. URL key for specified store already exists for categories in magento 2 export via akeneo pim any one how to fix this issue magento ver 2.2....
0
votes
0answers
12 views

Modifying the custom controller url to SEO friendly in Magento 2

I have created my custom module for loading the custom template. Here is the code of Vendor/Module/etc/frontend/routes.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
30 views

Magento 2 Url Key of Configurable Simple Product are same

I had migrated my store to the latest version, now I am facing an issue: Some Configurable Simple Product have same Url key, Below are the Simple Products of a Configurable Product: Is there any ...
15
votes
9answers
23k views

How to change magento2 admin url?

Once the installation is completed, is there a posibility to change admin url? If yes how can I do that?
4
votes
3answers
7k views

Where is the admin path located in database?

I want to find out where does Magento2 keeps it's admin path in the database? Any suggestions will be appreciated.
2
votes
1answer
34 views

Function getUrl of magento 2 doesn't work correct

In template I try to get url link but it doesn't work correct. I try to use this code: $block->getUrl('aloha/product/view/id/') But it always return http://abcs.com/aloha/product/view/, Is this a ...
1
vote
1answer
200 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
1k views

How to remove trailing slash from Magento 2 url

I have installed ssl in my Magento 2 store and configured base url to the https version. But when accessing http version, Magento redirecting url with appending trailing slash. For example: My ...
0
votes
2answers
70 views

can't get admin url - Magento 2

I use the below code to get admin url of given frontName/controllerName/Action protected $storeManagerInterface; public function __construct(\Magento\Store\Model\StoreManagerInterface $...
0
votes
0answers
10 views

How do you setup different URL's for websites?

I would like to setup three websites as follows: Website 1 (www.magentostore.com/) Website 2 (www.magentostore.com/au/) Website 3 (www.magentostore.com/uk/) My question is, is this ...
2
votes
2answers
35 views

Observer to fire on customer login Page Url (baseUrl.“customer/account/login”) magento 2

I want to fire observer on customer login Page url(baseUrl."customer/account/login") magento 2. I tried customer_login event but it's firing after customer login. etc/events.xml <?xml version="...
1
vote
1answer
654 views

Use secure url for static files field into database Magento 2?

I'm using magento 2, and I'm trying to find the field of "use secure url for static files" (or similar label). I can find web/unsecure/base_url into mgxo_core_config_data , but not that one, I need to ...