Opened 19 years ago

Closed 18 years ago

Last modified 18 years ago

#1099 closed enhancement (wontfix)

[patch] Enable usage of absolute path for admin js option

Reported by: Nebojša Đorđević - nesh <nesh@…> Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: nesh@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

With this patch if admin.js parameter is used with absolute URL, ADMIN_MEDIA_URL is not added in front of it.

This way we don't need to link additional JS files into ADMIN_MEDIA_URL/js/ directory.

Attachments (2)

admin.diff (925 bytes ) - added by Nebojša Đorđević - nesh <nesh@…> 19 years ago.
admin_media_prefix_allow_absolute_paths.diff (842 bytes ) - added by Tom Tobin <korpios@…> 19 years ago.
My take on the fix for this issue; supports http(s): and uses urljoin.

Download all attachments as: .zip

Change History (7)

by Nebojša Đorđević - nesh <nesh@…>, 19 years ago

Attachment: admin.diff added

comment:1 by Nebojša Đorđević - nesh <nesh@…>, 19 years ago

Cc: nesh@… added

comment:2 by joeboy, 19 years ago

It would also be good (and trivial) to be able to specify a full url, ie. http://somesite.com/scripts/somescript.js

comment:3 by Adrian Holovaty, 19 years ago

Resolution: wontfix
Status: newclosed

We're going to remove the admin.js option entirely, in favor of custom admin templates, so I'm marking this as a wontfix.

by Tom Tobin <korpios@…>, 19 years ago

My take on the fix for this issue; supports http(s): and uses urljoin.

comment:4 by Tom Tobin <korpios@…>, 19 years ago

Resolution: wontfix
Status: closedreopened

I thought I'd add my crack at this issue; as it's been three months since this ticket was closed, and it's still an annoying issue today (IMHO), I don't feel that applying a fix right now would be detrimental unless those custom admin templates are arriving tomorrow. :)

comment:5 by Tom Tobin <korpios@…>, 18 years ago

Resolution: wontfix
Status: reopenedclosed

Forgive me, for I know not what I was high on; custom admin templates are indeed a much better solution, as I've discovered. :-D

Note: See TracTickets for help on using tickets.
Back to Top