Pages. How to do redirect to another page when loading

Use a stored procedure to output meta information by page (SELECT 2 in the page's SQL, redirectURLfield). If it is filled in, then a redirect to the specified address will take place.  

CREATE PROCEDURE [dbo].[pg_crumbs_Projects]
@roles nvarchar(128),
@itemID nvarchar(128) = ",
@urlParameters CRUDFilterParameter READONLY
AS
BEGIN
declare @result TABLE (title nvarchar(256), link nvarchar(256), tooltip nvarchar(256), ord int)

insert into @result
select 'Home','/',", 1
union
select 'My account', '/home/p/customerCabinet',", 2
union
select 'All documents',", ", 3

select * from @result order by ord

-- 2 SELECT additional settings of the page
select 'My projects', '/home/p/customerCabinet' RedirectUrl
drop table #result
END
Falcon Space is a functional web development platform on a narrow stack MS SQL/Bootstrap. Falcon Space Gettting started

Falcon Space Platform

This is a reduction in the cost of ownership

at the expense of fewer people to support

This is a quick change

while using the program

This is a modern interface

full adaptation for mobile devices

 
Note