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
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
add a comment |
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
stackoverflow.com/questions/25192212/…
– Nagaraju Kasa
2 days ago
1
$currentUrl = Mage::app()->getStore()->getCurrentUrl(false);
– Nagaraju Kasa
2 days ago
add a comment |
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
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
magento-1.9 url
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
change
$currentUrl = Mage::helper('core/url')->getCurrentUrl();
to
$currentUrl = Mage::app()->getRequest()->getServer('HTTP_REFERER');
This is what I exactly need. Thanks.
– Shajitha Banu
2 days ago
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
change
$currentUrl = Mage::helper('core/url')->getCurrentUrl();
to
$currentUrl = Mage::app()->getRequest()->getServer('HTTP_REFERER');
This is what I exactly need. Thanks.
– Shajitha Banu
2 days ago
add a comment |
change
$currentUrl = Mage::helper('core/url')->getCurrentUrl();
to
$currentUrl = Mage::app()->getRequest()->getServer('HTTP_REFERER');
This is what I exactly need. Thanks.
– Shajitha Banu
2 days ago
add a comment |
change
$currentUrl = Mage::helper('core/url')->getCurrentUrl();
to
$currentUrl = Mage::app()->getRequest()->getServer('HTTP_REFERER');
change
$currentUrl = Mage::helper('core/url')->getCurrentUrl();
to
$currentUrl = Mage::app()->getRequest()->getServer('HTTP_REFERER');
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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

stackoverflow.com/questions/25192212/…
– Nagaraju Kasa
2 days ago
1
$currentUrl = Mage::app()->getStore()->getCurrentUrl(false);
– Nagaraju Kasa
2 days ago