Ticket #90 (closed defect: fixed)

Opened 17 months ago

Last modified 3 months ago

Should be able to run under a url prefix

Reported by: ltucker Owned by:
Priority: minor Milestone: OpenBlock 1.2
Component: ebpub Version: 1.1
Keywords: openblock-rural Cc:
Sensitive: no

Description

Currently reference to URLs in templates assume openblock is running at the root of a domain. You should be able to run it at say /openblock

Django should be able to compensate for this, but only if the URLs are generated by the url template tag. Many are currently hard-coded.

Change History

comment:1 Changed 16 months ago by slinkp

See also #69 which refers to hardcoded urls in python code

comment:2 Changed 12 months ago by slinkp

  • Milestone changed from Alpha Release 1 to Alpha Release 2

comment:3 Changed 10 months ago by slinkp

  • Milestone changed from Alpha Release 2 to Beta Release 1

comment:4 Changed 9 months ago by slinkp

  • Milestone Beta Release 1 deleted

Milestone Beta Release 1 deleted

comment:2 Changed 9 months ago by slinkp

  • Milestone set to OpenBlock 1.0

comment:3 Changed 9 months ago by slinkp

  • Milestone changed from OpenBlock 1.0 to OpenBlock 1.1

comment:4 Changed 9 months ago by slinkp

  • Milestone changed from OpenBlock 1.1 to OpenBlock 1.2

comment:5 Changed 7 months ago by slinkp

  • Keywords openblock-rural added

comment:9 Changed 6 months ago by Paul Winkler <slinkp@…>

(In [6541d4822dac78e89d4178f0b93703485d0b1e11]) De-hardcode the openblock API URLs used by our javascript; refs #90

comment:10 Changed 5 months ago by slinkp

  • Version set to 1.1

This command finds a bunch of problematic links in templates:
find . -name "*html" | xargs grep 'href="/'

If those all get fixed, this ticket could probably be closed?

comment:11 Changed 4 months ago by Paul Winkler <slinkp@…>

(In [81f7cd1a568031cf56e935325ab09b1d2b7fedea]) Use STATIC_URL in resource links, refs #90

comment:12 Changed 4 months ago by Paul Winkler <slinkp@…>

  • Status changed from new to closed
  • Resolution set to fixed

(In [87a5cbaa35ed43133a310e6dc1d576e909ca8b2d]) De-hardcode a bunch more URLs. I think this fixes #90

comment:13 Changed 4 months ago by Paul Winkler <slinkp@…>

(In [86ff28589c3ff32b236a33fe144ce60f62e735e5]) De-hardcode a lot of links; refs #90

comment:14 Changed 4 months ago by Paul Winkler <slinkp@…>

(In [786c4b5a4af5bf8a6ddac7f836520a8b6686774d]) De-hardcode more URLs. Refs #90

comment:15 Changed 3 months ago by Paul Winkler <slinkp@…>

(In [261fe1fd088b01bebac90b1b2c0557d3c9f25dde]) De-hardcode yet another URL, refs #90

comment:16 Changed 3 months ago by Paul Winkler <slinkp@…>

(In [25d662809ab4e760eeebd1a2c24f2f7ef705896e]) De-hardcode a few more URLs, refs #90

Note: See TracTickets for help on using tickets.