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

  • alain01

  • Just can't stay away

  • Posts: 530

  • 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: 530

  • 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

508 user(s) are online (171 user(s) are browsing Support Forums)


Members: 0


Guests: 508


more...

Donat-O-Meter

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

Latest GitHub Commits