Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Maintain url with handler
#1
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
Reply
#2
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.
Reply
#3
Stay tuned for the new update 15.2.37. It will contain a new property that allows you to do exactly that.
Reply
#4
Thank you Alexandre.
Reply
#5
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)