Closed Bug 1497077 Opened 6 years ago Closed 6 years ago

Convert links, image/iframe sources, form actions to absolute path

Categories

(bugzilla.mozilla.org :: General, task)

Production
task
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: kohei, Assigned: kohei)

References

(Blocks 2 open bugs)

Details

Attachments

(3 files)

Before adopting pretty URLs like /bug/ID, /user/ID or whatever, the current links with a relative path like `query.cgi` have to be converted to an absolute path like `/query.cgi`.
But some installations are not on the root, e.g. https://www.w3.org/Bugs/Public/ so it has to be `[% urlbase FILTER html %]query.cgi` ideally excluding the origin part.
See Also: → 1497070
Attached file GitHub Pull Request
Merged to master.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Follow-up PRs also merged to master. Let’s move on to Bug 1468848.
I have found that some redirects are relative URLs, not prefixed with `urlbase` (now those could be mostly replaced with `basepath`). It’s difficult to find all the relative stuff in the complex codebase, but I’ll try to scan further.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → ASSIGNED
Summary: Convert links to absolute path → Convert links, redirects, image/iframe sources, form actions to absolute path
I’ll fix redirects in a separate bug.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
Summary: Convert links, redirects, image/iframe sources, form actions to absolute path → Convert links, image/iframe sources, form actions to absolute path
See Also: → 1503483
Depends on: 1507867
Type: enhancement → task
No longer depends on: 1507867
Regressions: 1507867
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: