Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6381535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:24:26+00:00 2026-05-25T02:24:26+00:00

If I put my application in a subdirectory, e.g. by naming it cm.war, after

  • 0

If I put my application in a subdirectory, e.g. by naming it cm.war, after a successful login the redirect goes to /cm/cm (should be /cm).

I don’t believe I have done anything funny in the boot code,

val loggedIn =   If(() => User.loggedIn_?,  () => RedirectResponse(User.loginPageURL))
val loggedInSU = If(() => User.superUser_?, () => RedirectResponse(User.loginPageURL))

some menu code

, (Menu("Users") / "users" / "index" >> loggedInSU) submenus (userSubMenus)

later I am applying the User.sitemapMutator

Other redirects in the app works fine.

Stepping the code reveals that it indeed tries to redirect to / which gets transformed into /cm by the updateWithContextPath in the Req class. It could be that updateWithContextPath for some reason is called twice, but I have not been able to see that in the debugger.

It works well as long as I deploy the app as root.

I am using lift 2.4-M3 and have tried both jetty 7.4.5 and 6.1.24.

Does anyone have an idea of what’s happening?

edit
Some more stepping reveals that the response actually looks alright, but it get’s transformed in LiftServlet, fixHeaders, from /cm to /cm/cm.

Bug?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:24:26+00:00Added an answer on May 25, 2026 at 2:24 am

    Yes, this is a known bug in 2.4-M3, see here: https://www.assembla.com/spaces/liftweb/tickets/1082-redirectresponse-duplicates-contextpath

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Where should I put the .html files in a wicket Application? my current project
I want to put all libraries (dll) used by my application to a subdirectory
I have an ASP.NET application. It resides within another ASP.NET application. I put my
I have a EAR application with following structure: app.ear |-- app.war `-- META-INF `--
In a typical iOS application, where should one put application wide objects? I'd like
Rep steps: create example .NET form application put a TextBox on the form wire
Can you give me an example on how to put my application form in
I just converted a WebSite to a Web application and put in a new
I recently came across a ASP 1.1 web application that put a whole heap
my application consist of a landscape view where i want to put a modalview

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.