Custom Link

automan25

Member
I've created a custom link on a list element to link to the details view for each item in the list using the code shown below. It works really well when clicked from the standard list view. When viewing from a custom module however the link inherits the path of the page the module is hosted on, rather than the correct path. Has anyone else had this issue? Any solutions? Is there a good explanation somewhere for how the com_fabrik option works?

index.php?option=com_fabrik&view=details&formid={formid}&rowid={rowid}

Thanks.
 
No, it's just standard HTML / web stuff. Not a "Fabrik thing".

When you build URL's on a web page, if you don't prepend it with a /, the browser will automatically prepend the current "base href" of the page (basically the current page's URL, including stuff after the / at the end of the host part). If you prepend it with a /, it'll just get the host name prepended. If you specify the entire URL with hostname, the page won't change the URL.

If you google something like "relative vs absolute url", you'll find a number of good explanations (better than mine, anyway!).

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top