craftcms / craftcms/cms

Make the Rich Text field save linked entry as relative URL

Open
#4,089 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

Description

When we link other document I want them to be relative url's instead of absolute url

Steps to reproduce
  1. Create a Rich text field
  2. Link other document and it refers to absolute url instead of relative url
Additional info
  • Craft version: Craft CMS 2.6.3013
  • PHP version:
  • Database driver & version:
  • Plugins & versions:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior with a Rich Text field by linking another document, then trace the Rich Text field's linked-document URL handling. Done means linked documents are saved as relative URLs rather than absolute URLs; verify the result using the reproduction steps in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
content
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.