Maintain url with handler

<< Click to Display Table of Contents >>

Navigation:  Forum >

Maintain url with handler

Forum link

 


 

09-08-2021, 07:51 AM:

 

Hi at all,

 

I have this situation: I have a link like this (in a tag) http://127.0.0.1:8888/Curriculum/KeyNumb...r&DaHome=1. 

 

I have registered an handler in this way

 

with THandlers.Add ('/Curriculum/', '', TContentForm.Create (TBSCurriculumCandidatoSingoloForm)) do

 

begin

 

  CanStartSession: = True;

 

  RequiresSessionStart: = False;

 

end;

 

so the /Curriculum/ display TBSCurriculumCandidatoSingoloForm form.

 

When clicked link http://127.0.0.1:8888/Curriculum/KeyNumb...r&DaHome=1 the form is displayed but the link in the address bar change like this: http://127.0.0.1:8888/hkn6AtmCEulz039mSC...urriculum/ this part KeyNumber-Surname-Name.html?CurriculumKey=KeyNumber&DaHome = 1 is deleted.

 

Is it possible to mantain all url like original (http://127.0.0.1:8888/Curriculum/KeyNumb...r&DaHome=1) for search engines?

 

Thank you

 

Andrea

 

P.s : i use intraweb 15.2.31

 


 

09-10-2021, 06:09 AM:

 

It is possible if you create your own TContentForm descendant. Other than that we are implementing new things in ContentHandlers area that will make it possible via properties.

 


 

09-13-2021, 12:57 AM:

 

Stay tuned for the new update 15.2.37. It will contain a new property that allows you to do exactly that.

 


 

09-13-2021, 12:04 PM:

 

Thank you Alexandre.

 


 

09-13-2021, 09:06 PM:

 

Try IW 15.2.37 recently released. You must create your content handler and set the property RedirectToPath to FALSE. It will then behave as you intend.

 

Please let me know how it goes.