1
alain01
bbcode and url
  • 2021/4/6 14:51

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


Hi,
I noticed a thing on the URL bbcode
Is it only for a standard URL ?

I explain the problem here:
I want to write only the absolute link from the root of the website

Example:
The URL is:
Quote:but I want to write
Quote:
/modules/xmnews/article.php?news_id = 35

BBCode turns this link into
Quote:
modules/xmnews/article.php?news_id=35
(Without "/")
so the link is bad.

A solution ?
- I should use an html link with an href = "" ?
- This BBCode only works for a standard URL ?
- Others?

2
alain01
Re: bbcode and url
  • 2021/4/6 15:45

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20



3
geekwright
Re: bbcode and url

Nothing new, here. This has been that way for a long time.

The url xoopscode tag expects a fully qualified URL. Partials lead to security exposures very quickly. There is no one size fits all way to resolve scheme-less URLs. XOOPS can for example work fine in a directory under a domain.

There is a siteurl tag which always prepends the full XOOPS_URL with a trailing slash. That is useful when transferring content between a prototype and a production system without changes.

Login

Who's Online

269 user(s) are online (146 user(s) are browsing Support Forums)


Members: 0


Guests: 269


more...

Donat-O-Meter

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

Latest GitHub Commits