Prefer creating links to internal: instead of base:

Created on 9 March 2022, about 3 years ago
Updated 12 March 2024, about 1 year ago

Problem/Motivation

Sometimes we prefer internal over base, for consistency!

Is there any real difference between the two?

Feature request
Status

RTBC

Version

2.0

Component

Code

Created by

🇦🇺Australia dpi Perth, Australia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia gordon Melbourne

    Actually there is a major difference between `base` and `internal`. Base will treat the URI and a complete path and urlencode() the path as it should. However the problem is that if your URI has a query or fragment than these will be encoded as well.

    Using internal actually negates this issue and will split out the query or fragment and encode it correctly in the Url object.

    based upon the issue that I was having, we should treat all URL's as internal so they are no broken when they are urlencoded.

Production build 0.71.5 2024