#1 2018-10-09 06:43:59

array81
Member
From: Italy
Registered: 2010-07-23
Posts: 411

Know previous view name of MVC application

We hypothesize that I have 3 views (A, B and C) on MVC application.
From A and B I can call C view. Can I know who have call C?

TSQLRestServerURIContext does not seem have this property.
URIAfterRoot get me C as current view before show it.

Do I have to implement a system or the framework just have it?

Offline

#2 2018-10-09 07:20:11

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,238
Website

Re: Know previous view name of MVC application

I guess you can get the "Referer" HTTP header from the TSQLRestServerURIContext instance.

Offline

Board footer

Powered by FluxBB