Modern Button Redirect SharePoint List

%3CLINGO-SUB%20id%3D%22lingo-sub-1566231%22%20slang%3D%22en-US%22%3EModern%20Button%20Redirect%20SharePoint%20List%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1566231%22%20slang%3D%22en-US%22%3E%3CP%3EI%20added%20a%20button%20webpart%20on%20a%20page%20that%20opens%20a%20SharePoint%20list%20'newform.aspx'%26nbsp%3B%20--%20is%20there%20a%20way%20to%20redirect%20user%20back%20to%20the%20source%20page%3F%3CBR%20%2F%3E%3CBR%20%2F%3EI%20also%20used%20%3CSTRONG%3EPower%20Apps%3C%2FSTRONG%3E%20to%20edit%20the%20new%20form%20template%20and%20I%20can't%20find%20any%20option%20to%20set%20up%20the%20redirect%20in%20Power%20Apps.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20added%20'source%3D'%20in%20the%20URL%20(button%20link)%20but%20the%20domain%20portion%20of%20the%20URL%20gets%20drop%20and%20can't%20get%20it%20to%20work.%20(i.e.%20%3CA%20href%3D%22https%3A%2F%2Fxxxx.sharepoint.com%2Fsites%2Fxxx%2Fnewform.aspx%3Fsource%3Dhttps%3A%2F%2Fxxx.sharepoint.com%2Fsites%2Fxxx%2Fhome.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fxxxx.sharepoint.com%2Fsites%2Fxxx%2Fnewform.aspx%3Fsource%3Dhttps%3A%2F%2Fxxx.sharepoint.com%2Fsites%2Fxxx%2Fhome.aspx%3C%2FA%3E%26nbsp%3B--%20after%20I%20save%20the%20button%20the%20url%20changes%20to%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fxxxx.sharepoint.com%2Fsites%2Fxxx%2Fnewform.aspx%3Fsource%3Dhttps%3A%2F%2Fxxx.sharepoint.com%2Fsites%2Fxxx%2Fhome.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsites%2Fxxx%2Fnewform.aspx%3Fsource%3Dhttps%3A%2F%2Fxxx.sharepoint.com%2Fsites%2Fxxx%2Fhome.aspx%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1566231%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPower%20Apps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Contributor

I added a button webpart on a page that opens a SharePoint list 'newform.aspx'  -- is there a way to redirect user back to the source page?

I also used Power Apps to edit the new form template and I can't find any option to set up the redirect in Power Apps.

I added 'source=' in the URL (button link) but the domain portion of the URL gets drop and can't get it to work. (i.e. https://xxxx.sharepoint.com/sites/xxx/newform.aspx?source=https://xxx.sharepoint.com/sites/xxx/home.... -- after I save the button the url changes to https://sites/xxx/newform.aspx?source=https://xxx.sharepoint.com/sites/xxx/home.aspx

0 Replies