package Moxy::Plugin::LocationBar; use strict; use warnings; use base qw/Moxy::Plugin/; use Carp; use HTML::Entities; sub render_location_bar : Hook { my ($self, $context, $args) = @_; croak "invalid args" if ref $args ne 'HASH'; return unless (($args->{response}->header('Content-Type')||'') =~ /html/); my $content = $args->{response}->content; my $bar = render_control_panel($args->{response}->request->uri); $content =~ s!(