Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • After trying more or less all solutions, I find this one is the more consistent way to do that Commented Mar 27, 2019 at 16:44
  • What if I open the page on particular link and I want that it will go back to page that in page tree? Commented Feb 11, 2020 at 8:45
  • Iḿ getting error Type string has no call signatures when calling preiousUrl(). Can you help me out? :D Commented Jul 27, 2020 at 9:50
  • @SzokeLori Sounds like your "this" is pointing to String type. You should post a question with the code. Commented Jul 27, 2020 at 14:03
  • @AnjilDhamala well... i just injected the thing as private to constructor and wanted to console log it. Mind me, im a beginner Commented Jul 27, 2020 at 16:47