[ 
https://issues.apache.org/jira/browse/ARTEMIS-5440?focusedWorklogId=968284&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-968284
 ]

ASF GitHub Bot logged work on ARTEMIS-5440:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 01/May/25 09:01
            Start Date: 01/May/25 09:01
    Worklog Time Spent: 10m 
      Work Description: GChuf commented on PR #82:
URL: 
https://github.com/apache/activemq-artemis-console/pull/82#issuecomment-2844415241

   @grgrzybek about the .env file - the only value beling replaced by webpack 
is PUBLIC_URL, and it's "hardcoded" into the webpack.config.cjs:
   ```
         new InterpolateHtmlPlugin(HtmlWebpackPlugin, {
           PUBLIC_URL: '/console'
         }),
   ```
         
   I don't think the .env file is used anywhere (I don't know webpack all that 
well), and if it is, it's redundant with this configuration anyway. Can you 
check and possibly remove the file?
   
   And if the link will always stay the same in index.html, 
InterpolateHtmlPlugin only unnecessarily makes things more complex.
   It would suffice to change the PUBLIC_URL to /hawtio in the index.html 
itself. 




Issue Time Tracking
-------------------

    Worklog Id:     (was: 968284)
    Time Spent: 0.5h  (was: 20m)

> New Artemis Management Console not working under custom context path
> --------------------------------------------------------------------
>
>                 Key: ARTEMIS-5440
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5440
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: 2.40.0
>            Reporter: Lucian Burja
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: console.png, screenshot-1.png, screenshot-2.png
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> In our organisation we're running the ActiveMQ Artemis Management Console 
> under a custom context path (i.e., {{/artemis/console}}).
> In {{etc/bootstrap.xml}} we configure it like this:
> {code:xml}
> <web bind="http://0.0.0.0:8161"; path="web">
>     <app url="artemis/console" war="console.war"/>
> </web>{code}
> This setup works as expected in version 2.38.0 but fails in 2.40.0
> In 2.40.0 when accessing the console I see that:
>  * The browser correctly redirects to {{/artemis/console/login}}
>  * However, the loaded HTML sets the {{<base href>}} to {{/console/}} instead 
> of {{/artemis/console/}}
>  !console.png|width=1000! 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to