Magento 1.9 get current url The Next CEO of Stack OverflowHow do I get correct ajax url for backend?Urldecode bug: after adding a simple product to shopping cart on search page and redirect to current pageCan I get more specifics on changing the Continue Shopping URL in Magento?Redirect to specific controller from observer without changing my current browser UrlSkin URL in controllerhow to get current wishlist in magentoGet custom controller url in ajax in magento 1.9Get the Product URL in the Custom Module Controller Fileget controller name by page urlMagento2 get url of all CMS pages using their identifiers

Lucky Feat: How can "more than one creature spend a luck point to influence the outcome of a roll"?

What CSS properties can the br tag have?

Calculate the Mean mean of two numbers

My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?

Is a distribution that is normal, but highly skewed, considered Gaussian?

Prepend last line of stdin to entire stdin

How many extra stops do monopods offer for tele photographs?

Inexact numbers as keys in Association?

AB diagonalizable then BA also diagonalizable

Yu-Gi-Oh cards in Python 3

What does "shotgun unity" refer to here in this sentence?

Would a completely good Muggle be able to use a wand?

What happened in Rome, when the western empire "fell"?

Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico

Are the names of these months realistic?

When "be it" is at the beginning of a sentence, what kind of structure do you call it?

How to count occurrences of text in a file?

Audio Conversion With ADS1243

Expectation in a stochastic differential equation

Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis

What can the phrase “is embedded in a whale of a bill” mean?

Sulfuric acid symmetry point group

Is it convenient to ask the journal's editor for two additional days to complete a review?

Does regularization penalize models that are simpler than needed?



Magento 1.9 get current url



The Next CEO of Stack OverflowHow do I get correct ajax url for backend?Urldecode bug: after adding a simple product to shopping cart on search page and redirect to current pageCan I get more specifics on changing the Continue Shopping URL in Magento?Redirect to specific controller from observer without changing my current browser UrlSkin URL in controllerhow to get current wishlist in magentoGet custom controller url in ajax in magento 1.9Get the Product URL in the Custom Module Controller Fileget controller name by page urlMagento2 get url of all CMS pages using their identifiers










1















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')->getCurrentUrl();
it returns the controller action which wee used to call in AJAX, where us I need to get the Current active URL from the browser.



Can anyone help me with this?










share|improve this question
























  • stackoverflow.com/questions/25192212/…

    – Nagaraju Kasa
    2 days ago







  • 1





    $currentUrl = Mage::app()->getStore()->getCurrentUrl(false);

    – Nagaraju Kasa
    2 days ago















1















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')->getCurrentUrl();
it returns the controller action which wee used to call in AJAX, where us I need to get the Current active URL from the browser.



Can anyone help me with this?










share|improve this question
























  • stackoverflow.com/questions/25192212/…

    – Nagaraju Kasa
    2 days ago







  • 1





    $currentUrl = Mage::app()->getStore()->getCurrentUrl(false);

    – Nagaraju Kasa
    2 days ago













1












1








1








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')->getCurrentUrl();
it returns the controller action which wee used to call in AJAX, where us I need to get the Current active URL from the browser.



Can anyone help me with this?










share|improve this question
















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')->getCurrentUrl();
it returns the controller action which wee used to call in AJAX, where us I need to get the Current active URL from the browser.



Can anyone help me with this?







magento-1.9 url






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago









Rakesh Donga

2,258316




2,258316










asked 2 days ago









Shajitha BanuShajitha Banu

64110




64110












  • stackoverflow.com/questions/25192212/…

    – Nagaraju Kasa
    2 days ago







  • 1





    $currentUrl = Mage::app()->getStore()->getCurrentUrl(false);

    – Nagaraju Kasa
    2 days ago

















  • stackoverflow.com/questions/25192212/…

    – Nagaraju Kasa
    2 days ago







  • 1





    $currentUrl = Mage::app()->getStore()->getCurrentUrl(false);

    – Nagaraju Kasa
    2 days ago
















stackoverflow.com/questions/25192212/…

– Nagaraju Kasa
2 days ago






stackoverflow.com/questions/25192212/…

– Nagaraju Kasa
2 days ago





1




1





$currentUrl = Mage::app()->getStore()->getCurrentUrl(false);

– Nagaraju Kasa
2 days ago





$currentUrl = Mage::app()->getStore()->getCurrentUrl(false);

– Nagaraju Kasa
2 days ago










1 Answer
1






active

oldest

votes


















2














change



$currentUrl = Mage::helper('core/url')->getCurrentUrl();


to



$currentUrl = Mage::app()->getRequest()->getServer('HTTP_REFERER');





share|improve this answer

























  • This is what I exactly need. Thanks.

    – Shajitha Banu
    2 days ago











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f267919%2fmagento-1-9-get-current-url%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














change



$currentUrl = Mage::helper('core/url')->getCurrentUrl();


to



$currentUrl = Mage::app()->getRequest()->getServer('HTTP_REFERER');





share|improve this answer

























  • This is what I exactly need. Thanks.

    – Shajitha Banu
    2 days ago















2














change



$currentUrl = Mage::helper('core/url')->getCurrentUrl();


to



$currentUrl = Mage::app()->getRequest()->getServer('HTTP_REFERER');





share|improve this answer

























  • This is what I exactly need. Thanks.

    – Shajitha Banu
    2 days ago













2












2








2







change



$currentUrl = Mage::helper('core/url')->getCurrentUrl();


to



$currentUrl = Mage::app()->getRequest()->getServer('HTTP_REFERER');





share|improve this answer















change



$currentUrl = Mage::helper('core/url')->getCurrentUrl();


to



$currentUrl = Mage::app()->getRequest()->getServer('HTTP_REFERER');






share|improve this answer














share|improve this answer



share|improve this answer








edited 2 days ago

























answered 2 days ago









Rakesh DongaRakesh Donga

2,258316




2,258316












  • This is what I exactly need. Thanks.

    – Shajitha Banu
    2 days ago

















  • This is what I exactly need. Thanks.

    – Shajitha Banu
    2 days ago
















This is what I exactly need. Thanks.

– Shajitha Banu
2 days ago





This is what I exactly need. Thanks.

– Shajitha Banu
2 days ago

















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f267919%2fmagento-1-9-get-current-url%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Bulk add to cart function issuecart vs. mini cart issue … rwd themeRedirect Add to cart button to cart pageAdd to cart issue - Magento 2.1The requested Payment Method is not available When creating an orderM2: reason add-to-cart might not function in production modeAdd to cart issue in some android devicesMagento 2 - custom price can not add to subtotal and grand total after add to cartAdd to cart codeIssue with my cart module on pdp and cart pages, just keeps spinningBulk price and quantity update using rest api

Category menu linking direct to productHow to create an new observer on the event catalog_product_save_beforePHP else: statements in addtocart.phtml - Adding conditions to the Add To Cart button on product pageAdd template to custom adminhtml buttonAdd category title to product view pageEdit layered navigation filter titles in Magento 1.9.2Have category page main menu based on current categoryProduct collection displaying wrong categoryHow Can I Customize Magento Default URL (Product URL and Category URL)Programatically add cross sell products to all products within a certain categoryHow to create custom link for category?Creating Custom 'Buy Now' button with Custom buy now link