Return to previous page in joomla
问题 I have created my own extension. This extension can be accessed from different components and parts of the website. The problem I have is that there could be a number of different URLs that link to this extension. I have a 'cancel' button and I can't work out how I would get this button to link to the previous URL. Wondering if there is something built into joomla like getPreviousURL? Couldn't find anything. EDIT: I should have said that I still want to be able to run my cancel() method. e.g.