1
dmcmeans
Rationale for how modules handle relative urls?
  • 2005/3/31 16:17

  • dmcmeans

  • Just popping in

  • Posts: 14

  • Since: 2005/3/4 2


I cut my teeth on PostNuke, and its modules resolve relative urls starting from the root folder of the PostNuke install.

So, I was a little surprised to see that XOOPS modules do it differently -- they seem to resolve starting from the specific module's folder.

So, a link like my File in a news article, would resolve to

/modules/news/myFiles/file.txt

in Xoops

and to

/myFiles/file.txt

in PostNuke.

Is this intended behavior? Does anyone know why XOOPS handles it this way? Is there a configuration setting to change this behavior?

Thanks,

David

2
Mithrandir
Re: Rationale for how modules handle relative urls?

It is because PostNuke uses the "front controller" (all pages are loaded from a file in the root folder) where XOOPS modules load individual files. When you specify a relative URL, your browser (I think) will go from the active URL when calculating the new location.

I think you can get it to count from the domain root by starting the link with a forward slash /

Login

Who's Online

339 user(s) are online (61 user(s) are browsing Support Forums)


Members: 0


Guests: 339


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits