Home Analyst Portal

Redirect to different page after submitting request

Paul_HardingPaul_Harding Customer IT Monkey ✭
Is it possible to redirect users back to the home page after they submit requests via offerings. By default it seems to redirect them to the My Requests page and confirms the saving of the request with the green banner. We are currently hiding the My Requests and Team Requests views from users so a blank page is displayed.

Best Answer


  • Paul_HardingPaul_Harding Customer IT Monkey ✭

    Hi Geoff, that sounds like a great way to implement for now and easy to remove once we are happy to go live fully with My Requests. Your help would be appreciated please.



  • Ian_StephensonIan_Stephenson Customer IT Monkey ✭
    Would it be possible to get the java script you use for this? I've not done much in Java but this is the exact issue I am currently trying to solve!

  • Justin_WorkmanJustin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭
    @Ian_Stephenson - This works for me:

    $(document).ready(function () {
    	setTimeout(function() {
    		var url = window.location.href;
    		var desiredURL = "/View/94ecd540-714b-49dc-82d1-0b34bf11888f";
    		if (url.indexOf("c5161e06-2378-4b44-aa89-5600e2d3b9d8") > 0 ) {
    			window.open(desiredURL, '_self');
    	}, 1500);
    You should be able to add that right into custom.js.
  • Ian_StephensonIan_Stephenson Customer IT Monkey ✭
    @Justin_Workman - It worked!!!!!!!!!!!!!!

    Thank you so much, I really appreciate the fast response and help. 
  • Tuan_LuuTuan_Luu Customer IT Monkey ✭
    edited June 2021


    Is it possible only redirect on a specific request?

    I am thinking to use document.referrer.indexOf to identify the previous url.



Sign In or Register to comment.